Skip to content

Commit

Permalink
Make --validate default on and shows how to turn if off
Browse files Browse the repository at this point in the history
  • Loading branch information
janetkuo committed Aug 25, 2015
1 parent 4d10def commit 5823ef7
Show file tree
Hide file tree
Showing 73 changed files with 1,247 additions and 206 deletions.
4 changes: 3 additions & 1 deletion contrib/completions/bash/kubectl
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ _kubectl_create()
flags+=("-h")
flags+=("--output=")
two_word_flags+=("-o")
flags+=("--validate")

must_have_one_flag=()
must_have_one_flag+=("--filename=")
Expand Down Expand Up @@ -378,6 +379,7 @@ _kubectl_replace()
flags+=("--output=")
two_word_flags+=("-o")
flags+=("--timeout=")
flags+=("--validate")

must_have_one_flag=()
must_have_one_flag+=("--filename=")
Expand Down Expand Up @@ -537,6 +539,7 @@ _kubectl_rolling-update()
two_word_flags+=("-t")
flags+=("--timeout=")
flags+=("--update-period=")
flags+=("--validate")

must_have_one_flag=()
must_have_one_flag+=("--filename=")
Expand Down Expand Up @@ -1149,7 +1152,6 @@ _kubectl()
flags+=("--user=")
flags+=("--username=")
flags+=("--v=")
flags+=("--validate")
flags+=("--vmodule=")

must_have_one_flag=()
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-annotate.1
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ resourcequotas (quota) or secrets.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-api-versions.1
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ Print available API versions.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-attach.1
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ Attach to a a process that is already running inside an existing container.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-cluster-info.1
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ Display addresses of the master and services with label kubernetes.io/cluster\-s
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-config-set-cluster.1
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ Specifying a name that already exists will merge new fields on top of existing v
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-config-set-context.1
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ Specifying a name that already exists will merge new fields on top of existing v
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-config-set-credentials.1
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ Bearer token and basic auth are mutually exclusive.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-config-set.1
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ PROPERTY\_VALUE is the new value you wish to set.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-config-unset.1
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ PROPERTY\_NAME is a dot delimited name where each token represents either a attr
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-config-use-context.1
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ Sets the current\-context in a kubeconfig file
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-config-view.1
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,6 @@ You can use \-\-output=template \-\-template=TEMPLATE to extract specific values
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-config.1
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ The loading order follows these rules:
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
8 changes: 4 additions & 4 deletions docs/man/man1/kubectl-create.1
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ JSON and YAML formats are accepted.
\fB\-o\fP, \fB\-\-output\fP=""
Output mode. Use "\-o name" for shorter output (resource/name).

.PP
\fB\-\-validate\fP=true
If true, use a schema to validate the input before sending it


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
Expand Down Expand Up @@ -122,10 +126,6 @@ JSON and YAML formats are accepted.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-delete.1
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ will be lost along with the rest of the resource.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-describe.1
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ namespaces (ns) or secrets.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-exec.1
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ Execute a command in a container.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-expose.1
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,6 @@ re\-use the labels from the resource it exposes.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-get.1
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ of the \-\-template flag, you can filter the attributes of the fetched resource(
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-label.1
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ If \-\-resource\-version is specified, then updates will use this resource versi
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-logs.1
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ Print the logs for a container in a pod. If the pod has only one container, the
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-namespace.1
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ namespace has been superseded by the context.namespace field of .kubeconfig file
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-patch.1
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ Please refer to the models in
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-port-forward.1
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ Forward one or more local ports to a pod.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-proxy.1
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ The above lets you 'curl localhost:8001/custom/api/v1/pods'
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
8 changes: 4 additions & 4 deletions docs/man/man1/kubectl-replace.1
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ Please refer to the models in
\fB\-\-timeout\fP=0
Only relevant during a force replace. The length of time to wait before giving up on a delete of the old resource, zero means determine a timeout from the size of the object

.PP
\fB\-\-validate\fP=true
If true, use a schema to validate the input before sending it


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
Expand Down Expand Up @@ -144,10 +148,6 @@ Please refer to the models in
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
8 changes: 4 additions & 4 deletions docs/man/man1/kubectl-rolling-update.1
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ existing replication controller and overwrite at least one (common) label in its
\fB\-\-update\-period\fP=1m0s
Time to wait between updating pods. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

.PP
\fB\-\-validate\fP=true
If true, use a schema to validate the input before sending it


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
Expand Down Expand Up @@ -174,10 +178,6 @@ existing replication controller and overwrite at least one (common) label in its
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-run.1
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ Creates a replication controller to manage the created container(s).
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-scale.1
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ scale is sent to the server.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-stop.1
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ If the resource is scalable it will be scaled to 0 before deletion.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
4 changes: 0 additions & 4 deletions docs/man/man1/kubectl-version.1
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ Print the client and server version information.
\fB\-\-v\fP=0
log level for V logs

.PP
\fB\-\-validate\fP=false
If true, use a schema to validate the input before sending it

.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging
Expand Down
Loading

0 comments on commit 5823ef7

Please sign in to comment.