-
Notifications
You must be signed in to change notification settings - Fork 6.7k
docs: Remove references to no longer used tls-server-name flag #25842
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
Conversation
Signed-off-by: Quentin Ågren <[email protected]>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
|
I apologize for being a bit candid, I should have suspected that these snippets were generated. However, I cannot understand whence the --tls-server-name comes 🤔 |
choejwoo
left a comment
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.
As you suspected, those flags are generated. --tls-server-name comes from Kubernetes client-go (clientcmd)’s recommended kubeconfig override flags (not Argo CD itself), which is why it shows up in the generated command docs.
Here are a few references.
- https://github.com/kubernetes/client-go/blob/master/tools/clientcmd/overrides.go#L146-L167
- https://github.com/argoproj/notifications-engine/blob/8c0c96d8d530d9bac76aa24d914d4d22294ac8b1/pkg/cmd/tools.go
- https://github.com/argoproj/argo-cd/blob/master/cmd/argocd/commands/admin/notifications.go
By the way, I’m not super familiar with the CLI plumbing here, but since this flag is a persistent/inherited kubeconfig override flag, how did you determine that it’s no longer used?
|
Thanks a lot for providing these references, from which I started to derive some basic understanding of the apparatus.
I tried to use it in the process of troubleshooting an inadequate SAN on a TLS certificate: Which got me intrigued so I went and So what's the next step to fix this? I noticed that |
|
Thanks for the detailed analysis. |
|
@nitishfy keep me posted I'd be happy to work on a fix (if one is deemed necessary) with some guidance. |
todaywasawesome
left a comment
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.
Closing in favor of issue #25875 which should be a new PR
The
--tls-server-nameflag is documented, but no longer used.Remove all remaining references: