Skip to content

Commit

Permalink
Updated kubeconfig flag docs
Browse files Browse the repository at this point in the history
  • Loading branch information
coufalja committed Apr 26, 2018
1 parent 256fb6a commit 4bf3ee7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func executeLoad() error {

func init() {
loadCmd.Flags().BoolVarP(&lp.verbose, "verbose", "v", false, "verbose output")
loadCmd.Flags().BoolVarP(&lp.kubeconfig, "kubeconfig", "k", false, "if locally stored ~/.kube/config should be used, InCluster config will be used if false")
loadCmd.Flags().BoolVarP(&lp.kubeconfig, "kubeconfig", "k", false, "true if locally stored ~/.kube/config should be used, InCluster config will be used if false (options: true|false) (default: false)")
loadCmd.Flags().StringVarP(&lp.mergetype, "merge-type", "", "delete", "how to merge ConfigMap data whether to also delete missing values or just upsert new (options: delete|upsert)")
loadCmd.Flags().StringVarP(&lp.git, "git", "g", "", "git repository address, either http(s) or ssh protocol has to be specified")
loadCmd.Flags().StringVarP(&lp.branch, "branch", "b", "master", "branch name to pull")
Expand Down
2 changes: 1 addition & 1 deletion cmd/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func init() {
watchCmd.Flags().IntVarP(&wp.interval, "interval", "i", 10, "interval in seconds in which to try refreshing ConfigMap from git")
watchCmd.Flags().StringVarP(&wp.mergetype, "merge-type", "", "delete", "how to merge ConfigMap data whether to also delete missing values or just upsert new (options: delete|upsert)")
watchCmd.Flags().BoolVarP(&wp.verbose, "verbose", "v", false, "verbose output")
watchCmd.Flags().BoolVarP(&wp.kubeconfig, "kubeconfig", "k", false, "if locally stored ~/.kube/config should be used, InCluster config will be used if false (default false)")
watchCmd.Flags().BoolVarP(&wp.kubeconfig, "kubeconfig", "k", false, "true if locally stored ~/.kube/config should be used, InCluster config will be used if false (options: true|false) (default: false)")
watchCmd.Flags().StringVarP(&wp.git, "git", "g", "", "git repository address, either http(s) or ssh protocol has to be specified")
watchCmd.Flags().StringVarP(&wp.branch, "branch", "b", "master", "branch name to pull")
watchCmd.Flags().StringVarP(&wp.folder, "cache-folder", "c", "/tmp/git2kube/data/", "destination on filesystem where cache of repository will be stored")
Expand Down
2 changes: 1 addition & 1 deletion docs/git2kube_load.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ git2kube load [flags]
-g, --git string git repository address, either http(s) or ssh protocol has to be specified
-h, --help help for load
--include strings regex that if is a match includes the file in the upload, example: '*.yaml' or 'folder/*' if you want to match a folder (default [.*])
-k, --kubeconfig if locally stored ~/.kube/config should be used, InCluster config will be used if false
-k, --kubeconfig true if locally stored ~/.kube/config should be used, InCluster config will be used if false (options: true|false) (default: false)
--label strings label to add to K8s ConfigMap (format NAME=VALUE)
--merge-type string how to merge ConfigMap data whether to also delete missing values or just upsert new (options: delete|upsert) (default "delete")
-n, --namespace string target namespace for resulting ConfigMap (default "default")
Expand Down
2 changes: 1 addition & 1 deletion docs/git2kube_watch.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ git2kube watch [flags]
-h, --help help for watch
--include strings regex that if is a match includes the file in the upload, example: '*.yaml' or 'folder/*' if you want to match a folder (default [.*])
-i, --interval int interval in seconds in which to try refreshing ConfigMap from git (default 10)
-k, --kubeconfig if locally stored ~/.kube/config should be used, InCluster config will be used if false (default false)
-k, --kubeconfig true if locally stored ~/.kube/config should be used, InCluster config will be used if false (options: true|false) (default: false)
--label strings label to add to K8s ConfigMap (format NAME=VALUE)
--merge-type string how to merge ConfigMap data whether to also delete missing values or just upsert new (options: delete|upsert) (default "delete")
-n, --namespace string target namespace for resulting ConfigMap (default "default")
Expand Down

0 comments on commit 4bf3ee7

Please sign in to comment.