add flattening and minifying options to config view

This commit is contained in:
deads2k
2015-04-10 14:30:08 -04:00
parent d02139d2b4
commit bac5cbbe82
34 changed files with 464 additions and 73 deletions

View File

@@ -3,7 +3,7 @@
.SH NAME
.PP
kubectl config view \- displays merged kubeconfig settings or a specified kubeconfig file.
kubectl config view \- displays Merged kubeconfig settings or a specified kubeconfig file.
.SH SYNOPSIS
@@ -13,13 +13,17 @@ kubectl config view \- displays merged kubeconfig settings or a specified kubeco
.SH DESCRIPTION
.PP
displays merged kubeconfig settings or a specified kubeconfig file.
displays Merged kubeconfig settings or a specified kubeconfig file.
.PP
You can use \-\-output=template \-\-template=TEMPLATE to extract specific values.
.SH OPTIONS
.PP
\fB\-\-flatten\fP=false
flatten the resulting kubeconfig file into self contained output (useful for creating portable kubeconfig files)
.PP
\fB\-h\fP, \fB\-\-help\fP=false
help for view
@@ -28,6 +32,10 @@ You can use \-\-output=template \-\-template=TEMPLATE to extract specific values
\fB\-\-merge\fP=true
merge together the full hierarchy of kubeconfig files
.PP
\fB\-\-minify\fP=false
remove all information not used by current\-context from the output
.PP
\fB\-\-no\-headers\fP=false
When using the default output, don't print headers.
@@ -165,7 +173,7 @@ You can use \-\-output=template \-\-template=TEMPLATE to extract specific values
.RS
.nf
// Show merged kubeconfig settings.
// Show Merged kubeconfig settings.
$ kubectl config view
// Show only local kubeconfig settings