mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 12:41:58 +00:00
add flattening and minifying options to config view
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user