From 1654791feb75057a73dcd80383f16db3c432b966 Mon Sep 17 00:00:00 2001 From: Somtochi Onyekwere Date: Fri, 8 Sep 2023 17:37:23 +0100 Subject: [PATCH] update description of kubeconfig flags Signed-off-by: Somtochi Onyekwere --- cmd/flux/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/flux/main.go b/cmd/flux/main.go index 9485110cb1..1226a3474d 100644 --- a/cmd/flux/main.go +++ b/cmd/flux/main.go @@ -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())