Merge pull request #2138 from kris-nova/bypass-kubeconfig

Expose options.CreateKubecfg to the CLI
This commit is contained in:
Eric Hole 2017-04-03 09:39:30 -04:00 committed by GitHub
commit 1cba0bd27f
3 changed files with 3 additions and 2 deletions

View File

@ -174,7 +174,7 @@ gcs-publish-ci: gcs-upload
gsutil -h "Cache-Control:private, max-age=0, no-transform" cp .build/upload/${LATEST_FILE} ${GCS_LOCATION}
gen-cli-docs:
KOPS_STATE_STORE= kops genhelpdocs --out docs/cli
@kops genhelpdocs --out docs/cli
# Will always push a linux-based build up to the server
push: crossbuild-nodeup

View File

@ -86,7 +86,7 @@ func NewCmdUpdateCluster(f *util.Factory, out io.Writer) *cobra.Command {
cmd.Flags().StringVar(&options.Models, "model", options.Models, "Models to apply (separate multiple models with commas)")
cmd.Flags().StringVar(&options.SSHPublicKey, "ssh-public-key", options.SSHPublicKey, "SSH public key to use (deprecated: use kops create secret instead)")
cmd.Flags().StringVar(&options.OutDir, "out", options.OutDir, "Path to write any local output")
cmd.Flags().BoolVar(&options.CreateKubecfg, "create-kube-config", options.CreateKubecfg, "Will control automatically creating the kube config file on your local filesystem")
return cmd
}

View File

@ -14,6 +14,7 @@ kops update cluster
### Options
```
--create-kube-config Will control automatically creating the kube config file on your local filesystem (default true)
--model string Models to apply (separate multiple models with commas) (default "config,proto,cloudup")
--out string Path to write any local output
--ssh-public-key string SSH public key to use (deprecated: use kops create secret instead)