Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5eae2378
Commit
5eae2378
authored
May 16, 2015
by
Anastasis Andronidis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warn for every _ flag user or cmd defined
also renames all global _ flags to -
parent
a1ea3df0
Hide whitespace changes
Inline
Side-by-side
Showing
63 changed files
with
272 additions
and
215 deletions
+272
-215
kubectl
contrib/completions/bash/kubectl
+3
-3
kubectl.md
docs/kubectl.md
+3
-3
kubectl_api-versions.md
docs/kubectl_api-versions.md
+4
-4
kubectl_cluster-info.md
docs/kubectl_cluster-info.md
+4
-4
kubectl_config.md
docs/kubectl_config.md
+4
-4
kubectl_config_set-cluster.md
docs/kubectl_config_set-cluster.md
+4
-4
kubectl_config_set-context.md
docs/kubectl_config_set-context.md
+4
-4
kubectl_config_set-credentials.md
docs/kubectl_config_set-credentials.md
+4
-4
kubectl_config_set.md
docs/kubectl_config_set.md
+4
-4
kubectl_config_unset.md
docs/kubectl_config_unset.md
+4
-4
kubectl_config_use-context.md
docs/kubectl_config_use-context.md
+4
-4
kubectl_config_view.md
docs/kubectl_config_view.md
+4
-4
kubectl_create.md
docs/kubectl_create.md
+4
-4
kubectl_delete.md
docs/kubectl_delete.md
+4
-4
kubectl_describe.md
docs/kubectl_describe.md
+4
-4
kubectl_exec.md
docs/kubectl_exec.md
+4
-4
kubectl_expose.md
docs/kubectl_expose.md
+4
-4
kubectl_get.md
docs/kubectl_get.md
+3
-3
kubectl_label.md
docs/kubectl_label.md
+4
-4
kubectl_logs.md
docs/kubectl_logs.md
+3
-3
kubectl_namespace.md
docs/kubectl_namespace.md
+4
-4
kubectl_port-forward.md
docs/kubectl_port-forward.md
+4
-4
kubectl_proxy.md
docs/kubectl_proxy.md
+4
-4
kubectl_resize.md
docs/kubectl_resize.md
+4
-4
kubectl_rolling-update.md
docs/kubectl_rolling-update.md
+4
-4
kubectl_run-container.md
docs/kubectl_run-container.md
+4
-4
kubectl_stop.md
docs/kubectl_stop.md
+4
-4
kubectl_update.md
docs/kubectl_update.md
+4
-4
kubectl_version.md
docs/kubectl_version.md
+4
-4
kubectl-api-versions.1
docs/man/man1/kubectl-api-versions.1
+3
-3
kubectl-cluster-info.1
docs/man/man1/kubectl-cluster-info.1
+3
-3
kubectl-config-set-cluster.1
docs/man/man1/kubectl-config-set-cluster.1
+3
-3
kubectl-config-set-context.1
docs/man/man1/kubectl-config-set-context.1
+3
-3
kubectl-config-set-credentials.1
docs/man/man1/kubectl-config-set-credentials.1
+3
-3
kubectl-config-set.1
docs/man/man1/kubectl-config-set.1
+3
-3
kubectl-config-unset.1
docs/man/man1/kubectl-config-unset.1
+3
-3
kubectl-config-use-context.1
docs/man/man1/kubectl-config-use-context.1
+3
-3
kubectl-config-view.1
docs/man/man1/kubectl-config-view.1
+3
-3
kubectl-config.1
docs/man/man1/kubectl-config.1
+3
-3
kubectl-create.1
docs/man/man1/kubectl-create.1
+3
-3
kubectl-delete.1
docs/man/man1/kubectl-delete.1
+3
-3
kubectl-describe.1
docs/man/man1/kubectl-describe.1
+3
-3
kubectl-exec.1
docs/man/man1/kubectl-exec.1
+3
-3
kubectl-expose.1
docs/man/man1/kubectl-expose.1
+3
-3
kubectl-get.1
docs/man/man1/kubectl-get.1
+3
-3
kubectl-label.1
docs/man/man1/kubectl-label.1
+3
-3
kubectl-logs.1
docs/man/man1/kubectl-logs.1
+3
-3
kubectl-namespace.1
docs/man/man1/kubectl-namespace.1
+3
-3
kubectl-port-forward.1
docs/man/man1/kubectl-port-forward.1
+3
-3
kubectl-proxy.1
docs/man/man1/kubectl-proxy.1
+3
-3
kubectl-resize.1
docs/man/man1/kubectl-resize.1
+3
-3
kubectl-rolling-update.1
docs/man/man1/kubectl-rolling-update.1
+3
-3
kubectl-run-container.1
docs/man/man1/kubectl-run-container.1
+3
-3
kubectl-stop.1
docs/man/man1/kubectl-stop.1
+3
-3
kubectl-update.1
docs/man/man1/kubectl-update.1
+3
-3
kubectl-version.1
docs/man/man1/kubectl-version.1
+3
-3
kubectl.1
docs/man/man1/kubectl.1
+3
-3
cmd.go
pkg/kubectl/cmd/cmd.go
+4
-0
cmd_test.go
pkg/kubectl/cmd/cmd_test.go
+27
-0
factory.go
pkg/kubectl/cmd/util/factory.go
+7
-6
factory_test.go
pkg/kubectl/cmd/util/factory_test.go
+13
-0
flags.go
pkg/util/flags.go
+15
-5
pflag_import.go
pkg/util/pflag_import.go
+10
-8
No files found.
contrib/completions/bash/kubectl
View file @
5eae2378
...
@@ -926,9 +926,9 @@ _kubectl()
...
@@ -926,9 +926,9 @@ _kubectl()
flags+
=(
"-h"
)
flags+
=(
"-h"
)
flags+
=(
"--insecure-skip-tls-verify"
)
flags+
=(
"--insecure-skip-tls-verify"
)
flags+
=(
"--kubeconfig="
)
flags+
=(
"--kubeconfig="
)
flags+
=(
"--log
_backtrace_
at="
)
flags+
=(
"--log
-backtrace-
at="
)
flags+
=(
"--log
_
dir="
)
flags+
=(
"--log
-
dir="
)
flags+
=(
"--log
_flush_
frequency="
)
flags+
=(
"--log
-flush-
frequency="
)
flags+
=(
"--logtostderr"
)
flags+
=(
"--logtostderr"
)
flags+
=(
"--match-server-version"
)
flags+
=(
"--match-server-version"
)
flags+
=(
"--namespace="
)
flags+
=(
"--namespace="
)
...
...
docs/kubectl.md
View file @
5eae2378
...
@@ -26,9 +26,9 @@ kubectl
...
@@ -26,9 +26,9 @@ kubectl
-h, --help=false: help for kubectl
-h, --help=false: help for kubectl
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
...
docs/kubectl_api-versions.md
View file @
5eae2378
...
@@ -29,9 +29,9 @@ kubectl api-versions
...
@@ -29,9 +29,9 @@ kubectl api-versions
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -49,6 +49,6 @@ kubectl api-versions
...
@@ -49,6 +49,6 @@ kubectl api-versions
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.555704962
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.231770799
+0000 UTC
[

]()
[

]()
docs/kubectl_cluster-info.md
View file @
5eae2378
...
@@ -29,9 +29,9 @@ kubectl cluster-info
...
@@ -29,9 +29,9 @@ kubectl cluster-info
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -49,6 +49,6 @@ kubectl cluster-info
...
@@ -49,6 +49,6 @@ kubectl cluster-info
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.555514789
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.230831561
+0000 UTC
[

]()
[

]()
docs/kubectl_config.md
View file @
5eae2378
...
@@ -35,9 +35,9 @@ kubectl config SUBCOMMAND
...
@@ -35,9 +35,9 @@ kubectl config SUBCOMMAND
--cluster="": The name of the kubeconfig cluster to use
--cluster="": The name of the kubeconfig cluster to use
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -62,6 +62,6 @@ kubectl config SUBCOMMAND
...
@@ -62,6 +62,6 @@ kubectl config SUBCOMMAND
*
[
kubectl config use-context
](
kubectl_config_use-context.md
)
- Sets the current-context in a kubeconfig file
*
[
kubectl config use-context
](
kubectl_config_use-context.md
)
- Sets the current-context in a kubeconfig file
*
[
kubectl config view
](
kubectl_config_view.md
)
- displays Merged kubeconfig settings or a specified kubeconfig file.
*
[
kubectl config view
](
kubectl_config_view.md
)
- displays Merged kubeconfig settings or a specified kubeconfig file.
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.555327159
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.229842268
+0000 UTC
[

]()
[

]()
docs/kubectl_config_set-cluster.md
View file @
5eae2378
...
@@ -45,9 +45,9 @@ $ kubectl config set-cluster e2e --insecure-skip-tls-verify=true
...
@@ -45,9 +45,9 @@ $ kubectl config set-cluster e2e --insecure-skip-tls-verify=true
--cluster="": The name of the kubeconfig cluster to use
--cluster="": The name of the kubeconfig cluster to use
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--kubeconfig="": use a particular kubeconfig file
--kubeconfig="": use a particular kubeconfig file
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -64,6 +64,6 @@ $ kubectl config set-cluster e2e --insecure-skip-tls-verify=true
...
@@ -64,6 +64,6 @@ $ kubectl config set-cluster e2e --insecure-skip-tls-verify=true
### SEE ALSO
### SEE ALSO
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.553839852
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.222182293
+0000 UTC
[

]()
[

]()
docs/kubectl_config_set-context.md
View file @
5eae2378
...
@@ -39,9 +39,9 @@ $ kubectl config set-context gce --user=cluster-admin
...
@@ -39,9 +39,9 @@ $ kubectl config set-context gce --user=cluster-admin
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": use a particular kubeconfig file
--kubeconfig="": use a particular kubeconfig file
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--password="": Password for basic authentication to the API server.
--password="": Password for basic authentication to the API server.
...
@@ -57,6 +57,6 @@ $ kubectl config set-context gce --user=cluster-admin
...
@@ -57,6 +57,6 @@ $ kubectl config set-context gce --user=cluster-admin
### SEE ALSO
### SEE ALSO
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.554224777
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.225463229
+0000 UTC
[

]()
[

]()
docs/kubectl_config_set-credentials.md
View file @
5eae2378
...
@@ -60,9 +60,9 @@ $ kubectl set-credentials cluster-admin --client-certificate=~/.kube/admin.crt -
...
@@ -60,9 +60,9 @@ $ kubectl set-credentials cluster-admin --client-certificate=~/.kube/admin.crt -
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": use a particular kubeconfig file
--kubeconfig="": use a particular kubeconfig file
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -77,6 +77,6 @@ $ kubectl set-credentials cluster-admin --client-certificate=~/.kube/admin.crt -
...
@@ -77,6 +77,6 @@ $ kubectl set-credentials cluster-admin --client-certificate=~/.kube/admin.crt -
### SEE ALSO
### SEE ALSO
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.55402965
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.22419139
+0000 UTC
[

]()
[

]()
docs/kubectl_config_set.md
View file @
5eae2378
...
@@ -31,9 +31,9 @@ kubectl config set PROPERTY_NAME PROPERTY_VALUE
...
@@ -31,9 +31,9 @@ kubectl config set PROPERTY_NAME PROPERTY_VALUE
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": use a particular kubeconfig file
--kubeconfig="": use a particular kubeconfig file
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -51,6 +51,6 @@ kubectl config set PROPERTY_NAME PROPERTY_VALUE
...
@@ -51,6 +51,6 @@ kubectl config set PROPERTY_NAME PROPERTY_VALUE
### SEE ALSO
### SEE ALSO
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.554534222
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.226564217
+0000 UTC
[

]()
[

]()
docs/kubectl_config_unset.md
View file @
5eae2378
...
@@ -30,9 +30,9 @@ kubectl config unset PROPERTY_NAME
...
@@ -30,9 +30,9 @@ kubectl config unset PROPERTY_NAME
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": use a particular kubeconfig file
--kubeconfig="": use a particular kubeconfig file
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -50,6 +50,6 @@ kubectl config unset PROPERTY_NAME
...
@@ -50,6 +50,6 @@ kubectl config unset PROPERTY_NAME
### SEE ALSO
### SEE ALSO
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.554933161
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.228039789
+0000 UTC
[

]()
[

]()
docs/kubectl_config_use-context.md
View file @
5eae2378
...
@@ -29,9 +29,9 @@ kubectl config use-context CONTEXT_NAME
...
@@ -29,9 +29,9 @@ kubectl config use-context CONTEXT_NAME
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": use a particular kubeconfig file
--kubeconfig="": use a particular kubeconfig file
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -49,6 +49,6 @@ kubectl config use-context CONTEXT_NAME
...
@@ -49,6 +49,6 @@ kubectl config use-context CONTEXT_NAME
### SEE ALSO
### SEE ALSO
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.555123528
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.228948447
+0000 UTC
[

]()
[

]()
docs/kubectl_config_view.md
View file @
5eae2378
...
@@ -52,9 +52,9 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
...
@@ -52,9 +52,9 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": use a particular kubeconfig file
--kubeconfig="": use a particular kubeconfig file
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -72,6 +72,6 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
...
@@ -72,6 +72,6 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
### SEE ALSO
### SEE ALSO
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.553648867
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.216559289
+0000 UTC
[

]()
[

]()
docs/kubectl_create.md
View file @
5eae2378
...
@@ -42,9 +42,9 @@ $ cat pod.json | kubectl create -f -
...
@@ -42,9 +42,9 @@ $ cat pod.json | kubectl create -f -
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -62,6 +62,6 @@ $ cat pod.json | kubectl create -f -
...
@@ -62,6 +62,6 @@ $ cat pod.json | kubectl create -f -
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.550199549
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.178299587
+0000 UTC
[

]()
[

]()
docs/kubectl_delete.md
View file @
5eae2378
...
@@ -62,9 +62,9 @@ $ kubectl delete pods --all
...
@@ -62,9 +62,9 @@ $ kubectl delete pods --all
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -82,6 +82,6 @@ $ kubectl delete pods --all
...
@@ -82,6 +82,6 @@ $ kubectl delete pods --all
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.550666007
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.18056941
+0000 UTC
[

]()
[

]()
docs/kubectl_describe.md
View file @
5eae2378
...
@@ -42,9 +42,9 @@ $ kubectl describe pods/nginx
...
@@ -42,9 +42,9 @@ $ kubectl describe pods/nginx
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -62,6 +62,6 @@ $ kubectl describe pods/nginx
...
@@ -62,6 +62,6 @@ $ kubectl describe pods/nginx
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.549970974
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.177122438
+0000 UTC
[

]()
[

]()
docs/kubectl_exec.md
View file @
5eae2378
...
@@ -43,9 +43,9 @@ $ kubectl exec -p 123456-7890 -c ruby-container -i -t -- bash -il
...
@@ -43,9 +43,9 @@ $ kubectl exec -p 123456-7890 -c ruby-container -i -t -- bash -il
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -63,6 +63,6 @@ $ kubectl exec -p 123456-7890 -c ruby-container -i -t -- bash -il
...
@@ -63,6 +63,6 @@ $ kubectl exec -p 123456-7890 -c ruby-container -i -t -- bash -il
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.551970235
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.186469192
+0000 UTC
[

]()
[

]()
docs/kubectl_expose.md
View file @
5eae2378
...
@@ -63,9 +63,9 @@ $ kubectl expose rc streamer --port=4100 --protocol=udp --name=video-stream
...
@@ -63,9 +63,9 @@ $ kubectl expose rc streamer --port=4100 --protocol=udp --name=video-stream
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -83,6 +83,6 @@ $ kubectl expose rc streamer --port=4100 --protocol=udp --name=video-stream
...
@@ -83,6 +83,6 @@ $ kubectl expose rc streamer --port=4100 --protocol=udp --name=video-stream
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
19 14:12:47.467953048
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.197790185
+0000 UTC
[

]()
[

]()
docs/kubectl_get.md
View file @
5eae2378
...
@@ -65,9 +65,9 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
...
@@ -65,9 +65,9 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
...
docs/kubectl_label.md
View file @
5eae2378
...
@@ -60,9 +60,9 @@ $ kubectl label pods foo bar-
...
@@ -60,9 +60,9 @@ $ kubectl label pods foo bar-
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -80,6 +80,6 @@ $ kubectl label pods foo bar-
...
@@ -80,6 +80,6 @@ $ kubectl label pods foo bar-
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.553433439
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.210679161
+0000 UTC
[

]()
[

]()
docs/kubectl_logs.md
View file @
5eae2378
...
@@ -45,9 +45,9 @@ $ kubectl logs -f 123456-7890 ruby-container
...
@@ -45,9 +45,9 @@ $ kubectl logs -f 123456-7890 ruby-container
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
...
docs/kubectl_namespace.md
View file @
5eae2378
...
@@ -32,9 +32,9 @@ kubectl namespace [namespace]
...
@@ -32,9 +32,9 @@ kubectl namespace [namespace]
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -52,6 +52,6 @@ kubectl namespace [namespace]
...
@@ -52,6 +52,6 @@ kubectl namespace [namespace]
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.550855698
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.181662849
+0000 UTC
[

]()
[

]()
docs/kubectl_port-forward.md
View file @
5eae2378
...
@@ -47,9 +47,9 @@ $ kubectl port-forward -p mypod 0:5000
...
@@ -47,9 +47,9 @@ $ kubectl port-forward -p mypod 0:5000
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -67,6 +67,6 @@ $ kubectl port-forward -p mypod 0:5000
...
@@ -67,6 +67,6 @@ $ kubectl port-forward -p mypod 0:5000
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.55216820
6 +0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.18752049
6 +0000 UTC
[

]()
[

]()
docs/kubectl_proxy.md
View file @
5eae2378
...
@@ -44,9 +44,9 @@ $ kubectl proxy --api-prefix=k8s-api
...
@@ -44,9 +44,9 @@ $ kubectl proxy --api-prefix=k8s-api
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -64,6 +64,6 @@ $ kubectl proxy --api-prefix=k8s-api
...
@@ -64,6 +64,6 @@ $ kubectl proxy --api-prefix=k8s-api
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.552348175
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.188518514
+0000 UTC
[

]()
[

]()
docs/kubectl_resize.md
View file @
5eae2378
...
@@ -47,9 +47,9 @@ $ kubectl resize --current-replicas=2 --replicas=3 replicationcontrollers foo
...
@@ -47,9 +47,9 @@ $ kubectl resize --current-replicas=2 --replicas=3 replicationcontrollers foo
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -67,6 +67,6 @@ $ kubectl resize --current-replicas=2 --replicas=3 replicationcontrollers foo
...
@@ -67,6 +67,6 @@ $ kubectl resize --current-replicas=2 --replicas=3 replicationcontrollers foo
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.551722394
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.185268791
+0000 UTC
[

]()
[

]()
docs/kubectl_rolling-update.md
View file @
5eae2378
...
@@ -63,9 +63,9 @@ $ kubectl rolling-update frontend --image=image:v2
...
@@ -63,9 +63,9 @@ $ kubectl rolling-update frontend --image=image:v2
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -83,6 +83,6 @@ $ kubectl rolling-update frontend --image=image:v2
...
@@ -83,6 +83,6 @@ $ kubectl rolling-update frontend --image=image:v2
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.551455635
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.184123104
+0000 UTC
[

]()
[

]()
docs/kubectl_run-container.md
View file @
5eae2378
...
@@ -58,9 +58,9 @@ $ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta
...
@@ -58,9 +58,9 @@ $ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -78,6 +78,6 @@ $ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta
...
@@ -78,6 +78,6 @@ $ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
18 20:22:53.529935618
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.189857293
+0000 UTC
[

]()
[

]()
docs/kubectl_stop.md
View file @
5eae2378
...
@@ -52,9 +52,9 @@ $ kubectl stop -f path/to/resources
...
@@ -52,9 +52,9 @@ $ kubectl stop -f path/to/resources
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -72,6 +72,6 @@ $ kubectl stop -f path/to/resources
...
@@ -72,6 +72,6 @@ $ kubectl stop -f path/to/resources
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.552969845
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.190996891
+0000 UTC
[

]()
[

]()
docs/kubectl_update.md
View file @
5eae2378
...
@@ -46,9 +46,9 @@ $ kubectl update pods my-pod --patch='{ "apiVersion": "v1beta1", "desiredState":
...
@@ -46,9 +46,9 @@ $ kubectl update pods my-pod --patch='{ "apiVersion": "v1beta1", "desiredState":
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -66,6 +66,6 @@ $ kubectl update pods my-pod --patch='{ "apiVersion": "v1beta1", "desiredState":
...
@@ -66,6 +66,6 @@ $ kubectl update pods my-pod --patch='{ "apiVersion": "v1beta1", "desiredState":
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.550430092
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.179469636
+0000 UTC
[

]()
[

]()
docs/kubectl_version.md
View file @
5eae2378
...
@@ -30,9 +30,9 @@ kubectl version
...
@@ -30,9 +30,9 @@ kubectl version
--context="": The name of the kubeconfig context to use
--context="": The name of the kubeconfig context to use
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--kubeconfig="": Path to the kubeconfig file to use for CLI requests.
--log
_backtrace_
at=:0: when logging hits line file:N, emit a stack trace
--log
-backtrace-
at=:0: when logging hits line file:N, emit a stack trace
--log
_
dir=: If non-empty, write log files in this directory
--log
-
dir=: If non-empty, write log files in this directory
--log
_flush_
frequency=5s: Maximum number of seconds between log flushes
--log
-flush-
frequency=5s: Maximum number of seconds between log flushes
--logtostderr=true: log to standard error instead of files
--logtostderr=true: log to standard error instead of files
--match-server-version=false: Require server version to match client version
--match-server-version=false: Require server version to match client version
--namespace="": If present, the namespace scope for this CLI request.
--namespace="": If present, the namespace scope for this CLI request.
...
@@ -50,6 +50,6 @@ kubectl version
...
@@ -50,6 +50,6 @@ kubectl version
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-
15 00:05:04.555991019
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-
21 10:33:11.232741611
+0000 UTC
[

]()
[

]()
docs/man/man1/kubectl-api-versions.1
View file @
5eae2378
...
@@ -60,15 +60,15 @@ Print available API versions.
...
@@ -60,15 +60,15 @@ Print available API versions.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-cluster-info.1
View file @
5eae2378
...
@@ -60,15 +60,15 @@ Display addresses of the master and services with label kubernetes.io/cluster\-s
...
@@ -60,15 +60,15 @@ Display addresses of the master and services with label kubernetes.io/cluster\-s
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-config-set-cluster.1
View file @
5eae2378
...
@@ -69,15 +69,15 @@ Specifying a name that already exists will merge new fields on top of existing v
...
@@ -69,15 +69,15 @@ Specifying a name that already exists will merge new fields on top of existing v
use a particular kubeconfig file
use a particular kubeconfig file
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-config-set-context.1
View file @
5eae2378
...
@@ -69,15 +69,15 @@ Specifying a name that already exists will merge new fields on top of existing v
...
@@ -69,15 +69,15 @@ Specifying a name that already exists will merge new fields on top of existing v
use a particular kubeconfig file
use a particular kubeconfig file
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-config-set-credentials.1
View file @
5eae2378
...
@@ -92,15 +92,15 @@ Bearer token and basic auth are mutually exclusive.
...
@@ -92,15 +92,15 @@ Bearer token and basic auth are mutually exclusive.
use a particular kubeconfig file
use a particular kubeconfig file
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-config-set.1
View file @
5eae2378
...
@@ -62,15 +62,15 @@ PROPERTY\_VALUE is the new value you wish to set.
...
@@ -62,15 +62,15 @@ PROPERTY\_VALUE is the new value you wish to set.
use a particular kubeconfig file
use a particular kubeconfig file
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-config-unset.1
View file @
5eae2378
...
@@ -61,15 +61,15 @@ PROPERTY\_NAME is a dot delimited name where each token represents either a attr
...
@@ -61,15 +61,15 @@ PROPERTY\_NAME is a dot delimited name where each token represents either a attr
use a particular kubeconfig file
use a particular kubeconfig file
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-config-use-context.1
View file @
5eae2378
...
@@ -60,15 +60,15 @@ Sets the current\-context in a kubeconfig file
...
@@ -60,15 +60,15 @@ Sets the current\-context in a kubeconfig file
use a particular kubeconfig file
use a particular kubeconfig file
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-config-view.1
View file @
5eae2378
...
@@ -96,15 +96,15 @@ You can use \-\-output=template \-\-template=TEMPLATE to extract specific values
...
@@ -96,15 +96,15 @@ You can use \-\-output=template \-\-template=TEMPLATE to extract specific values
use a particular kubeconfig file
use a particular kubeconfig file
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-config.1
View file @
5eae2378
...
@@ -66,15 +66,15 @@ The loading order follows these rules:
...
@@ -66,15 +66,15 @@ The loading order follows these rules:
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-create.1
View file @
5eae2378
...
@@ -67,15 +67,15 @@ JSON and YAML formats are accepted.
...
@@ -67,15 +67,15 @@ JSON and YAML formats are accepted.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-delete.1
View file @
5eae2378
...
@@ -92,15 +92,15 @@ will be lost along with the rest of the resource.
...
@@ -92,15 +92,15 @@ will be lost along with the rest of the resource.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-describe.1
View file @
5eae2378
...
@@ -64,15 +64,15 @@ given resource.
...
@@ -64,15 +64,15 @@ given resource.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-exec.1
View file @
5eae2378
...
@@ -76,15 +76,15 @@ Execute a command in a container.
...
@@ -76,15 +76,15 @@ Execute a command in a container.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-expose.1
View file @
5eae2378
...
@@ -134,15 +134,15 @@ re\-use the labels from the resource it exposes.
...
@@ -134,15 +134,15 @@ re\-use the labels from the resource it exposes.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-get.1
View file @
5eae2378
...
@@ -101,15 +101,15 @@ of the \-\-template flag, you can filter the attributes of the fetched resource(
...
@@ -101,15 +101,15 @@ of the \-\-template flag, you can filter the attributes of the fetched resource(
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-label.1
View file @
5eae2378
...
@@ -97,15 +97,15 @@ If \-\-resource\-version is specified, then updates will use this resource versi
...
@@ -97,15 +97,15 @@ If \-\-resource\-version is specified, then updates will use this resource versi
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-logs.1
View file @
5eae2378
...
@@ -72,15 +72,15 @@ Print the logs for a container in a pod. If the pod has only one container, the
...
@@ -72,15 +72,15 @@ Print the logs for a container in a pod. If the pod has only one container, the
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-namespace.1
View file @
5eae2378
...
@@ -63,15 +63,15 @@ namespace has been superceded by the context.namespace field of .kubeconfig file
...
@@ -63,15 +63,15 @@ namespace has been superceded by the context.namespace field of .kubeconfig file
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-port-forward.1
View file @
5eae2378
...
@@ -64,15 +64,15 @@ Forward one or more local ports to a pod.
...
@@ -64,15 +64,15 @@ Forward one or more local ports to a pod.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-proxy.1
View file @
5eae2378
...
@@ -76,15 +76,15 @@ Run a proxy to the Kubernetes API server.
...
@@ -76,15 +76,15 @@ Run a proxy to the Kubernetes API server.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-resize.1
View file @
5eae2378
...
@@ -78,15 +78,15 @@ resize is sent to the server.
...
@@ -78,15 +78,15 @@ resize is sent to the server.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-rolling-update.1
View file @
5eae2378
...
@@ -114,15 +114,15 @@ existing controller and overwrite at least one (common) label in its replicaSele
...
@@ -114,15 +114,15 @@ existing controller and overwrite at least one (common) label in its replicaSele
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-run-container.1
View file @
5eae2378
...
@@ -110,15 +110,15 @@ Creates a replication controller to manage the created container(s).
...
@@ -110,15 +110,15 @@ Creates a replication controller to manage the created container(s).
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-stop.1
View file @
5eae2378
...
@@ -80,15 +80,15 @@ If the resource is resizable it will be resized to 0 before deletion.
...
@@ -80,15 +80,15 @@ If the resource is resizable it will be resized to 0 before deletion.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-update.1
View file @
5eae2378
...
@@ -71,15 +71,15 @@ JSON and YAML formats are accepted.
...
@@ -71,15 +71,15 @@ JSON and YAML formats are accepted.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl-version.1
View file @
5eae2378
...
@@ -64,15 +64,15 @@ Print the client and server version information.
...
@@ -64,15 +64,15 @@ Print the client and server version information.
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
docs/man/man1/kubectl.1
View file @
5eae2378
...
@@ -62,15 +62,15 @@ Find more information at
...
@@ -62,15 +62,15 @@ Find more information at
Path to the kubeconfig file to use for CLI requests.
Path to the kubeconfig file to use for CLI requests.
.PP
.PP
\fB\-\-log\
_backtrace\_
at\fP=:0
\fB\-\-log\
-backtrace\-
at\fP=:0
when logging hits line file:N, emit a stack trace
when logging hits line file:N, emit a stack trace
.PP
.PP
\fB\-\-log\
_
dir\fP=""
\fB\-\-log\
-
dir\fP=""
If non\-empty, write log files in this directory
If non\-empty, write log files in this directory
.PP
.PP
\fB\-\-log\
_flush\_
frequency\fP=5s
\fB\-\-log\
-flush\-
frequency\fP=5s
Maximum number of seconds between log flushes
Maximum number of seconds between log flushes
.PP
.PP
...
...
pkg/kubectl/cmd/cmd.go
View file @
5eae2378
...
@@ -21,6 +21,7 @@ import (
...
@@ -21,6 +21,7 @@ import (
cmdconfig
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd/config"
cmdconfig
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd/config"
cmdutil
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd/util"
cmdutil
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd/util"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/golang/glog"
"github.com/golang/glog"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
...
@@ -107,6 +108,9 @@ Find more information at https://github.com/GoogleCloudPlatform/kubernetes.`,
...
@@ -107,6 +108,9 @@ Find more information at https://github.com/GoogleCloudPlatform/kubernetes.`,
f
.
BindFlags
(
cmds
.
PersistentFlags
())
f
.
BindFlags
(
cmds
.
PersistentFlags
())
// From this point and forward we get warnings on flags that contain "_" separators
cmds
.
SetGlobalNormalizationFunc
(
util
.
WarnWordSepNormalizeFunc
)
cmds
.
AddCommand
(
NewCmdGet
(
f
,
out
))
cmds
.
AddCommand
(
NewCmdGet
(
f
,
out
))
cmds
.
AddCommand
(
NewCmdDescribe
(
f
,
out
))
cmds
.
AddCommand
(
NewCmdDescribe
(
f
,
out
))
cmds
.
AddCommand
(
NewCmdCreate
(
f
,
out
))
cmds
.
AddCommand
(
NewCmdCreate
(
f
,
out
))
...
...
pkg/kubectl/cmd/cmd_test.go
View file @
5eae2378
...
@@ -22,6 +22,7 @@ import (
...
@@ -22,6 +22,7 @@ import (
"io"
"io"
"io/ioutil"
"io/ioutil"
"os"
"os"
"reflect"
"testing"
"testing"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
...
@@ -276,3 +277,29 @@ func ExamplePrintReplicationController() {
...
@@ -276,3 +277,29 @@ func ExamplePrintReplicationController() {
// CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
// CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
// foo foo someimage foo=bar 1
// foo foo someimage foo=bar 1
}
}
func
TestNormalizationFuncGlobalExistance
(
t
*
testing
.
T
)
{
// This test can be safely deleted when we will not support multiple flag formats
root
:=
NewKubectlCommand
(
cmdutil
.
NewFactory
(
nil
),
os
.
Stdin
,
os
.
Stdout
,
os
.
Stderr
)
if
root
.
Parent
()
!=
nil
{
t
.
Fatal
(
"We expect the root command to be returned"
)
}
if
root
.
GlobalNormalizationFunc
()
==
nil
{
t
.
Fatal
(
"We expect that root command has a global normalization function"
)
}
if
reflect
.
ValueOf
(
root
.
GlobalNormalizationFunc
())
.
Pointer
()
!=
reflect
.
ValueOf
(
root
.
Flags
()
.
GetNormalizeFunc
())
.
Pointer
()
{
t
.
Fatal
(
"root command seems to have a wrong normalization function"
)
}
sub
:=
root
for
sub
.
HasSubCommands
()
{
sub
=
sub
.
Commands
()[
0
]
}
// In case of failure of this test check this PR: spf13/cobra#110
if
reflect
.
ValueOf
(
sub
.
Flags
()
.
GetNormalizeFunc
())
.
Pointer
()
!=
reflect
.
ValueOf
(
root
.
Flags
()
.
GetNormalizeFunc
())
.
Pointer
()
{
t
.
Fatal
(
"child and root commands should have the same normalization functions"
)
}
}
pkg/kubectl/cmd/util/factory.go
View file @
5eae2378
...
@@ -90,7 +90,7 @@ func NewFactory(optionalClientConfig clientcmd.ClientConfig) *Factory {
...
@@ -90,7 +90,7 @@ func NewFactory(optionalClientConfig clientcmd.ClientConfig) *Factory {
mapper
:=
kubectl
.
ShortcutExpander
{
latest
.
RESTMapper
}
mapper
:=
kubectl
.
ShortcutExpander
{
latest
.
RESTMapper
}
flags
:=
pflag
.
NewFlagSet
(
""
,
pflag
.
ContinueOnError
)
flags
:=
pflag
.
NewFlagSet
(
""
,
pflag
.
ContinueOnError
)
flags
.
SetNormalizeFunc
(
util
.
W
ordSepNormalizeFunc
)
flags
.
SetNormalizeFunc
(
util
.
W
arnWordSepNormalizeFunc
)
// Warn for "_" flags
generators
:=
map
[
string
]
kubectl
.
Generator
{
generators
:=
map
[
string
]
kubectl
.
Generator
{
"run-container/v1"
:
kubectl
.
BasicReplicationController
{},
"run-container/v1"
:
kubectl
.
BasicReplicationController
{},
...
@@ -236,17 +236,18 @@ func (f *Factory) BindFlags(flags *pflag.FlagSet) {
...
@@ -236,17 +236,18 @@ func (f *Factory) BindFlags(flags *pflag.FlagSet) {
f
.
flags
.
Bool
(
"validate"
,
false
,
"If true, use a schema to validate the input before sending it"
)
f
.
flags
.
Bool
(
"validate"
,
false
,
"If true, use a schema to validate the input before sending it"
)
}
}
if
f
.
flags
!=
nil
{
// Merge factory's flags
f
.
flags
.
VisitAll
(
func
(
flag
*
pflag
.
Flag
)
{
util
.
AddPFlagSetToPFlagSet
(
f
.
flags
,
flags
)
flags
.
AddFlag
(
flag
)
})
}
// Globally persistent flags across all subcommands.
// Globally persistent flags across all subcommands.
// TODO Change flag names to consts to allow safer lookup from subcommands.
// TODO Change flag names to consts to allow safer lookup from subcommands.
// TODO Add a verbose flag that turns on glog logging. Probably need a way
// TODO Add a verbose flag that turns on glog logging. Probably need a way
// to do that automatically for every subcommand.
// to do that automatically for every subcommand.
flags
.
BoolVar
(
&
f
.
clients
.
matchVersion
,
FlagMatchBinaryVersion
,
false
,
"Require server version to match client version"
)
flags
.
BoolVar
(
&
f
.
clients
.
matchVersion
,
FlagMatchBinaryVersion
,
false
,
"Require server version to match client version"
)
// Normalize all flags that are comming from other packages or pre-configurations
// a.k.a. change all "_" to "-". e.g. glog package
flags
.
SetNormalizeFunc
(
util
.
WordSepNormalizeFunc
)
}
}
func
getPorts
(
spec
api
.
PodSpec
)
[]
string
{
func
getPorts
(
spec
api
.
PodSpec
)
[]
string
{
...
...
pkg/kubectl/cmd/util/factory_test.go
View file @
5eae2378
...
@@ -25,6 +25,7 @@ import (
...
@@ -25,6 +25,7 @@ import (
clientcmdapi
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd/api"
clientcmdapi
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl"
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
)
)
func
TestNewFactoryDefaultFlagBindings
(
t
*
testing
.
T
)
{
func
TestNewFactoryDefaultFlagBindings
(
t
*
testing
.
T
)
{
...
@@ -153,3 +154,15 @@ func TestLabelsForObject(t *testing.T) {
...
@@ -153,3 +154,15 @@ func TestLabelsForObject(t *testing.T) {
}
}
}
}
func
TestFlagUnderscoreRenaming
(
t
*
testing
.
T
)
{
factory
:=
NewFactory
(
nil
)
factory
.
flags
.
SetNormalizeFunc
(
util
.
WordSepNormalizeFunc
)
factory
.
flags
.
Bool
(
"valid_flag"
,
false
,
"bool value"
)
// In case of failure of this test check this PR: spf13/pflag#23
if
factory
.
flags
.
Lookup
(
"valid_flag"
)
.
Name
!=
"valid-flag"
{
t
.
Fatalf
(
"Expected flag name to be valid-flag, got %s"
,
factory
.
flags
.
Lookup
(
"valid_flag"
)
.
Name
)
}
}
pkg/util/flags.go
View file @
5eae2378
...
@@ -19,14 +19,24 @@ package util
...
@@ -19,14 +19,24 @@ package util
import
"strings"
import
"strings"
import
"github.com/spf13/pflag"
import
"github.com/spf13/pflag"
import
"github.com/golang/glog"
// WordSepNormalizeFunc changes all flags that contain "_" separators
func
WordSepNormalizeFunc
(
f
*
pflag
.
FlagSet
,
name
string
)
pflag
.
NormalizedName
{
func
WordSepNormalizeFunc
(
f
*
pflag
.
FlagSet
,
name
string
)
pflag
.
NormalizedName
{
from
:=
[]
string
{
"-"
,
"_"
}
if
strings
.
Contains
(
name
,
"_"
)
{
to
:=
"."
return
pflag
.
NormalizedName
(
strings
.
Replace
(
name
,
"_"
,
"-"
,
-
1
))
for
_
,
sep
:=
range
from
{
}
name
=
strings
.
Replace
(
name
,
sep
,
to
,
-
1
)
return
pflag
.
NormalizedName
(
name
)
}
// WarnWordSepNormalizeFunc changes and warns for flags that contain "_" separators
func
WarnWordSepNormalizeFunc
(
f
*
pflag
.
FlagSet
,
name
string
)
pflag
.
NormalizedName
{
if
strings
.
Contains
(
name
,
"_"
)
{
nname
:=
strings
.
Replace
(
name
,
"_"
,
"-"
,
-
1
)
glog
.
Warningf
(
"%s is DEPRECATED and will be removed in a future version. Use %s instead."
,
name
,
nname
)
return
pflag
.
NormalizedName
(
nname
)
}
}
// Type convert to indicate normalization has been done.
return
pflag
.
NormalizedName
(
name
)
return
pflag
.
NormalizedName
(
name
)
}
}
...
...
pkg/util/pflag_import.go
View file @
5eae2378
...
@@ -85,23 +85,25 @@ func addFlagToPFlagSet(f *flag.Flag, fs *pflag.FlagSet) {
...
@@ -85,23 +85,25 @@ func addFlagToPFlagSet(f *flag.Flag, fs *pflag.FlagSet) {
}
}
}
}
// Adds all of the flags in a 'flag.FlagSet' package flags to a 'pflag.FlagSet'.
// Add
FlagSetToPFlagSet add
s all of the flags in a 'flag.FlagSet' package flags to a 'pflag.FlagSet'.
func
AddFlagSetToPFlagSet
(
fsIn
*
flag
.
FlagSet
,
fsOut
*
pflag
.
FlagSet
)
{
func
AddFlagSetToPFlagSet
(
fsIn
*
flag
.
FlagSet
,
fsOut
*
pflag
.
FlagSet
)
{
fsIn
.
VisitAll
(
func
(
f
*
flag
.
Flag
)
{
fsIn
.
VisitAll
(
func
(
f
*
flag
.
Flag
)
{
addFlagToPFlagSet
(
f
,
fsOut
)
addFlagToPFlagSet
(
f
,
fsOut
)
})
})
}
}
// Add all of the top level 'flag' package flags to the top level 'pflag' flags.
// Add
AllFlagsToPFlags adds
all of the top level 'flag' package flags to the top level 'pflag' flags.
func
AddAllFlagsToPFlags
()
{
func
AddAllFlagsToPFlags
()
{
AddFlagSetToPFlagSet
(
flag
.
CommandLine
,
pflag
.
CommandLine
)
AddFlagSetToPFlagSet
(
flag
.
CommandLine
,
pflag
.
CommandLine
)
}
}
//
Merge all of the flags from
fsFrom into fsTo.
//
AddPFlagSetToPFlagSet merges the flags of
fsFrom into fsTo.
func
AddPFlagSetToPFlagSet
(
fsFrom
*
pflag
.
FlagSet
,
fsTo
*
pflag
.
FlagSet
)
{
func
AddPFlagSetToPFlagSet
(
fsFrom
*
pflag
.
FlagSet
,
fsTo
*
pflag
.
FlagSet
)
{
fsFrom
.
VisitAll
(
func
(
f
*
pflag
.
Flag
)
{
if
fsFrom
!=
nil
&&
fsTo
!=
nil
{
if
fsTo
.
Lookup
(
f
.
Name
)
==
nil
{
fsFrom
.
VisitAll
(
func
(
f
*
pflag
.
Flag
)
{
fsTo
.
AddFlag
(
f
)
if
fsTo
.
Lookup
(
f
.
Name
)
==
nil
{
}
fsTo
.
AddFlag
(
f
)
})
}
})
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment