Skip to content

Commit

Permalink
Merge pull request #4250 from fluxcd/backport-4226-to-release/v2.1.x
Browse files Browse the repository at this point in the history
[release/v2.1.x] Update description of kubeconfig specific flag
  • Loading branch information
stefanprodan committed Sep 18, 2023
2 parents c87f48f + f94acd5 commit 4099203
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/flux/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ func init() {
apiServer := ""
kubeconfigArgs.APIServer = &apiServer
rootCmd.PersistentFlags().StringVar(kubeconfigArgs.APIServer, "server", *kubeconfigArgs.APIServer, "The address and port of the Kubernetes API server")
// Update the description for kubeconfig TLS flags so that user's don't mistake it for a Flux specific flag
rootCmd.Flag("insecure-skip-tls-verify").Usage = "If true, the Kubernetes API server's certificate will not be checked for validity. This will make your HTTPS connections insecure"
rootCmd.Flag("client-certificate").Usage = "Path to a client certificate file for TLS authentication to the Kubernetes API server"
rootCmd.Flag("certificate-authority").Usage = "Path to a cert file for the certificate authority to authenticate the Kubernetes API server"
rootCmd.Flag("client-key").Usage = "Path to a client key file for TLS authentication to the Kubernetes API server"

kubeclientOptions.BindFlags(rootCmd.PersistentFlags())

Expand Down

0 comments on commit 4099203

Please sign in to comment.