-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
chore!: remove duplicate Server env vars, plus --basehref
-> --base-href
#12653
chore!: remove duplicate Server env vars, plus --basehref
-> --base-href
#12653
Conversation
- every CLI flag has had an equivalent env var since 96c5626 - `ALLOWED_LINK_PROTOCOL` and `BASE_HREF` each had a duplicate env var as the odd ones out - so remove them in a breaking change, and refer users to their `ARGO_*` equivalents in the upgrade notes Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
b0c047a
to
8571e1f
Compare
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.
I think we also need to change
https://github.com/argoproj/argo-workflows/blob/main/cmd/argo/commands/root.go#L87C102-L87C111
to ARGO_BASE_HREF
|
Thanks for the links. They make a lot of sense! |
Ohhh, good catch! I totally missed that in the Yea let me modify that too. I could've sworn I searched for all references to |
Ah I totally missed this column number in the link -- I was on mobile where it's far off screen to the right so I didn't see the column highlight on first glance |
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
Fixed this one plus a few others. That should be all of them now |
@@ -45,7 +45,7 @@ func AddAPIClientFlagsToCmd(cmd *cobra.Command) { | |||
cmd.PersistentFlags().StringVar(&instanceID, "instanceid", os.Getenv("ARGO_INSTANCEID"), "submit with a specific controller's instance id label. Default to the ARGO_INSTANCEID environment variable.") | |||
// "-s" like kubectl | |||
cmd.PersistentFlags().StringVarP(&ArgoServerOpts.URL, "argo-server", "s", os.Getenv("ARGO_SERVER"), "API server `host:port`. e.g. localhost:2746. Defaults to the ARGO_SERVER environment variable.") | |||
cmd.PersistentFlags().StringVar(&ArgoServerOpts.Path, "argo-base-href", os.Getenv("ARGO_BASE_HREF"), "Path to use with HTTP client due to BASE_HREF. Defaults to the ARGO_BASE_HREF environment variable.") | |||
cmd.PersistentFlags().StringVar(&ArgoServerOpts.Path, "argo-base-href", os.Getenv("ARGO_BASE_HREF"), "Path to use with HTTP client due to Base HREF. Defaults to the ARGO_BASE_HREF environment variable.") |
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.
this is referring to the "Base HREF" feature now and not the specific env var
No worries. It happens |
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.
LGTM
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
--basehref
-> --base-href
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.
LGTM
Before approve, @terrytangyuan @juliev0 can you take a quick look because of it is breaking change?
@agilgur5, seems this change will break the helm chart, it still refers to BASE_HREF. See: https://github.com/argoproj/argo-helm/blob/2f82fb5992fe1e390d1ebdbc4be6d5d6c6549a37/charts/argo-workflows/templates/server/server-deployment.yaml#L98 |
Yes, all downstream consumers that use this, like the Helm Charts, will need to be updated. That is the nature of breaking changes. |
Merged |
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
Going to merge this as Tianchu approved and Bala LGTM'd and there have been no reviews from others in the past ~4 months |
Since |
Annnd I didn't re-read my own release notes or this PR (it's 4 months old, so quite a time delay) and caused a regression downstream in Argo Helm. Reverted that change in argoproj/argo-helm#2770 |
Follow-up to #12652 and #6923 (comment) on findings of duplicate env vars
Motivation
ALLOWED_LINK_PROTOCOL
andBASE_HREF
each had a duplicate env var as the odd ones out--basehref
was also inconsistent with the env var, other flags, and the client, change it to--base-href
for consistencyModifications
ARGO_*
equivalents in the upgrade notes--basehref
with--base-href
as a breaking change and mention it in the upgrade notesVerification
Docs build & lint pass.
Notes to Reviewers
Can skip
docs/cli/*
as it's all auto-generated from the CLI changes