Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Anthos MultiCloud distributions to UserAgentMode #465

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leonzz
Copy link
Contributor

@leonzz leonzz commented Apr 21, 2023

#433 only added the 2 Anthos Hybrid distributions, this one adds 3 MultiCloud distributions to fully resolve #432.

@@ -50,6 +50,9 @@ const (
UAModeUnspecified = "unspecified"
UAModeAVMW = "on-prem"
UAModeABM = "baremetal"
UAModeAWS = "aws"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have both a UserAgentMode and UserAgentEnv, where the former is generally reserved for the mode of installation and the latter for the platform environment. Notably, the former is user-modifiable via a flag, whereas the latter is hard-coded into the binary and auto-populated at runtime.

Is there any way to auto-detect whether we're running in AWS or Azure using a go library that we could add to the logic in setup.go?

For on-prem or baremetal, autodetection is not possible due to the heterogeneity of those environments, so using "mode" as a way to distinguish these makes sense, albeit it's getting double-usage out of that flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point. @ericroman920 could you comment on the auto detection for anthos on aws & azure?

@@ -50,6 +50,9 @@ const (
UAModeUnspecified = "unspecified"
UAModeAVMW = "on-prem"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add comments on what each of these modes means? e.g. what's the difference between "on-prem" and "baremetal"?

@@ -50,6 +50,9 @@ const (
UAModeUnspecified = "unspecified"
UAModeAVMW = "on-prem"
UAModeABM = "baremetal"
UAModeAWS = "aws"
UAModeAzure = "azure"
UAModeAttached = "attached"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is "attached"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attached clusters could be any k8s cluster that customers want to connect to Google.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha - could you add a comment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add anthos distributions to the user-agent-mode enum
2 participants