-
Notifications
You must be signed in to change notification settings - Fork 465
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
[1.14] cli: Infer gloo deploy name #9723
Conversation
Issues linked to changelog: |
Issues linked to changelog: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit around naming
Since this is a forward-port and it was previously approved I do not consider it a blocker
@@ -28,6 +28,9 @@ var ( | |||
return fmt.Sprintf("Gloo has detected that the data plane is out of sync. The following types of resources have not been accepted: %v. "+ | |||
"Gloo will not be able to process any other configuration updates until these errors are resolved.", resourceNames) | |||
} | |||
|
|||
// Initialize the custom deployment name that is overwritten later on in the `CheckResources` function | |||
customGlooDeploymentName = helpers.GlooDeploymentName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this customGlooDeploymentName
rather than glooDeploymentName
?
afaict the deployment name is not necessarily a custom one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it may be standard it may not be 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to avoid confusion with the constant GlooDeploymentName
and also indicate that the deployment name can be custom and has been handled in such a scenario
Description
Infer the gloo deployment name in cases where the deployment name is not the default
gloo
. The gloo deployment is identified by thegloo=gloo
label.Forward port of solo-io#9719
Context
solo-io#9163
Interesting decisions
Rather than adding another flag for the gloo deployment name which can soon ballon into a flag for the name of each deployment, I've decided to identify the deployment via the labels.
Testing steps
The following commands depend on the gloo deployment name :
glooctl check
glooctl get proxy
glooctl proxy served-config
glooctl get upstream -o wide
Checklist: