// TODO short flag names are impossible to prefix, decide whether to keep them or not
flags.StringVarP(&authInfo.AuthPath,flagNames.AuthPath,"a","","Path to the auth info file. If missing, prompt the user. Only used if using https.")
// TODO short flag names are impossible to prefix. code gets cleaner if we remove them
iflen(flagNames.AuthPathShort)>0{
flags.StringVarP(&authInfo.AuthPath,flagNames.AuthPath,flagNames.AuthPathShort,"","Path to the auth info file. If missing, prompt the user. Only used if using https.")
}else{
flags.StringVar(&authInfo.AuthPath,flagNames.AuthPath,"","Path to the auth info file. If missing, prompt the user. Only used if using https.")
}
flags.StringVar(&authInfo.ClientCertificate,flagNames.ClientCertificate,"","Path to a client key file for TLS.")
flags.StringVar(&authInfo.ClientKey,flagNames.ClientKey,"","Path to a client key file for TLS.")
flags.StringVar(&authInfo.Token,flagNames.Token,"","Bearer token for authentication to the API server.")
// TODO short flag names are impossible to prefix, decide whether to keep them or not
flags.StringVarP(&clusterInfo.Server,flagNames.APIServer,"s","","The address of the Kubernetes API server")
// TODO short flag names are impossible to prefix. code gets cleaner if we remove them
iflen(flagNames.APIServerShort)>0{
flags.StringVarP(&clusterInfo.Server,flagNames.APIServer,flagNames.APIServerShort,"","The address of the Kubernetes API server")
}else{
flags.StringVar(&clusterInfo.Server,flagNames.APIServer,"","The address of the Kubernetes API server")
}
flags.StringVar(&clusterInfo.APIVersion,flagNames.APIVersion,"","The API version to use when talking to the server")
flags.StringVar(&clusterInfo.CertificateAuthority,flagNames.CertificateAuthority,"","Path to a cert. file for the certificate authority.")
flags.BoolVar(&clusterInfo.InsecureSkipTLSVerify,flagNames.InsecureSkipTLSVerify,false,"If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.")