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
b90797d9
Commit
b90797d9
authored
Sep 25, 2015
by
Brian Grant
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14406 from hurf/config_message
Improve message from kubectl config
parents
5e259698
c4dc0561
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
45 additions
and
33 deletions
+45
-33
kubectl-config-view.1
docs/man/man1/kubectl-config-view.1
+2
-2
kubectl_config.md
docs/user-guide/kubectl/kubectl_config.md
+2
-2
kubectl_config_view.md
docs/user-guide/kubectl/kubectl_config_view.md
+3
-3
config_test.go
pkg/kubectl/cmd/config/config_test.go
+1
-1
create_authinfo.go
pkg/kubectl/cmd/config/create_authinfo.go
+7
-5
create_cluster.go
pkg/kubectl/cmd/config/create_cluster.go
+6
-4
create_context.go
pkg/kubectl/cmd/config/create_context.go
+4
-2
set.go
pkg/kubectl/cmd/config/set.go
+10
-8
unset.go
pkg/kubectl/cmd/config/unset.go
+4
-2
use_context.go
pkg/kubectl/cmd/config/use_context.go
+4
-2
view.go
pkg/kubectl/cmd/config/view.go
+2
-2
No files found.
docs/man/man1/kubectl-config-view.1
View file @
b90797d9
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
.SH NAME
.SH NAME
.PP
.PP
kubectl config view \-
displays M
erged kubeconfig settings or a specified kubeconfig file.
kubectl config view \-
Displays m
erged kubeconfig settings or a specified kubeconfig file.
.SH SYNOPSIS
.SH SYNOPSIS
...
@@ -13,7 +13,7 @@ kubectl config view \- displays Merged kubeconfig settings or a specified kubeco
...
@@ -13,7 +13,7 @@ kubectl config view \- displays Merged kubeconfig settings or a specified kubeco
.SH DESCRIPTION
.SH DESCRIPTION
.PP
.PP
displays M
erged kubeconfig settings or a specified kubeconfig file.
Displays m
erged kubeconfig settings or a specified kubeconfig file.
.PP
.PP
You can use \-\-output=template \-\-template=TEMPLATE to extract specific values.
You can use \-\-output=template \-\-template=TEMPLATE to extract specific values.
...
...
docs/user-guide/kubectl/kubectl_config.md
View file @
b90797d9
...
@@ -92,9 +92,9 @@ kubectl config SUBCOMMAND
...
@@ -92,9 +92,9 @@ kubectl config SUBCOMMAND
*
[
kubectl config set-credentials
](
kubectl_config_set-credentials.md
)
- Sets a user entry in kubeconfig
*
[
kubectl config set-credentials
](
kubectl_config_set-credentials.md
)
- Sets a user entry in kubeconfig
*
[
kubectl config unset
](
kubectl_config_unset.md
)
- Unsets an individual value in a kubeconfig file
*
[
kubectl config unset
](
kubectl_config_unset.md
)
- Unsets an individual value in a kubeconfig file
*
[
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 M
erged kubeconfig settings or a specified kubeconfig file.
*
[
kubectl config view
](
kubectl_config_view.md
)
-
Displays m
erged kubeconfig settings or a specified kubeconfig file.
###### Auto generated by spf13/cobra at 2015-09-
10 18:53:03.163685546
+0000 UTC
###### Auto generated by spf13/cobra at 2015-09-
23 08:09:58.253683538
+0000 UTC
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
[

]()
...
...
docs/user-guide/kubectl/kubectl_config_view.md
View file @
b90797d9
...
@@ -33,12 +33,12 @@ Documentation for other releases can be found at
...
@@ -33,12 +33,12 @@ Documentation for other releases can be found at
## kubectl config view
## kubectl config view
displays M
erged kubeconfig settings or a specified kubeconfig file.
Displays m
erged kubeconfig settings or a specified kubeconfig file.
### Synopsis
### Synopsis
displays M
erged kubeconfig settings or a specified kubeconfig file.
Displays m
erged kubeconfig settings or a specified kubeconfig file.
You can use --output=template --template=TEMPLATE to extract specific values.
You can use --output=template --template=TEMPLATE to extract specific values.
...
@@ -103,7 +103,7 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
...
@@ -103,7 +103,7 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
*
[
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-09-
10 18:53:03.161359997
+0000 UTC
###### Auto generated by spf13/cobra at 2015-09-
23 08:09:58.252744701
+0000 UTC
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
[

]()
...
...
pkg/kubectl/cmd/config/config_test.go
View file @
b90797d9
...
@@ -101,7 +101,7 @@ func TestSetNonExistentContext(t *testing.T) {
...
@@ -101,7 +101,7 @@ func TestSetNonExistentContext(t *testing.T) {
args
:
[]
string
{
"use-context"
,
"non-existent-config"
},
args
:
[]
string
{
"use-context"
,
"non-existent-config"
},
startingConfig
:
expectedConfig
,
startingConfig
:
expectedConfig
,
expectedConfig
:
expectedConfig
,
expectedConfig
:
expectedConfig
,
expectedOutputs
:
[]
string
{
`
N
o context exists with the name: "non-existent-config"`
},
expectedOutputs
:
[]
string
{
`
n
o context exists with the name: "non-existent-config"`
},
}
}
test
.
run
(
t
)
test
.
run
(
t
)
}
}
...
...
pkg/kubectl/cmd/config/create_authinfo.go
View file @
b90797d9
...
@@ -84,6 +84,8 @@ func NewCmdConfigSetAuthInfo(out io.Writer, configAccess ConfigAccess) *cobra.Co
...
@@ -84,6 +84,8 @@ func NewCmdConfigSetAuthInfo(out io.Writer, configAccess ConfigAccess) *cobra.Co
err
:=
options
.
run
()
err
:=
options
.
run
()
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Fprintf
(
out
,
"%v
\n
"
,
err
)
fmt
.
Fprintf
(
out
,
"%v
\n
"
,
err
)
}
else
{
fmt
.
Fprintf
(
out
,
"user %q set.
\n
"
,
options
.
name
)
}
}
},
},
}
}
...
@@ -197,7 +199,7 @@ func (o *createAuthInfoOptions) complete(cmd *cobra.Command) bool {
...
@@ -197,7 +199,7 @@ func (o *createAuthInfoOptions) complete(cmd *cobra.Command) bool {
func
(
o
createAuthInfoOptions
)
validate
()
error
{
func
(
o
createAuthInfoOptions
)
validate
()
error
{
if
len
(
o
.
name
)
==
0
{
if
len
(
o
.
name
)
==
0
{
return
errors
.
New
(
"
Y
ou must specify a non-empty user name"
)
return
errors
.
New
(
"
y
ou must specify a non-empty user name"
)
}
}
methods
:=
[]
string
{}
methods
:=
[]
string
{}
if
len
(
o
.
token
.
Value
())
>
0
{
if
len
(
o
.
token
.
Value
())
>
0
{
...
@@ -207,22 +209,22 @@ func (o createAuthInfoOptions) validate() error {
...
@@ -207,22 +209,22 @@ func (o createAuthInfoOptions) validate() error {
methods
=
append
(
methods
,
fmt
.
Sprintf
(
"--%v/--%v"
,
clientcmd
.
FlagUsername
,
clientcmd
.
FlagPassword
))
methods
=
append
(
methods
,
fmt
.
Sprintf
(
"--%v/--%v"
,
clientcmd
.
FlagUsername
,
clientcmd
.
FlagPassword
))
}
}
if
len
(
methods
)
>
1
{
if
len
(
methods
)
>
1
{
return
fmt
.
Errorf
(
"
Y
ou cannot specify more than one authentication method at the same time: %v"
,
strings
.
Join
(
methods
,
", "
))
return
fmt
.
Errorf
(
"
y
ou cannot specify more than one authentication method at the same time: %v"
,
strings
.
Join
(
methods
,
", "
))
}
}
if
o
.
embedCertData
.
Value
()
{
if
o
.
embedCertData
.
Value
()
{
certPath
:=
o
.
clientCertificate
.
Value
()
certPath
:=
o
.
clientCertificate
.
Value
()
keyPath
:=
o
.
clientKey
.
Value
()
keyPath
:=
o
.
clientKey
.
Value
()
if
certPath
==
""
&&
keyPath
==
""
{
if
certPath
==
""
&&
keyPath
==
""
{
return
fmt
.
Errorf
(
"
Y
ou must specify a --%s or --%s to embed"
,
clientcmd
.
FlagCertFile
,
clientcmd
.
FlagKeyFile
)
return
fmt
.
Errorf
(
"
y
ou must specify a --%s or --%s to embed"
,
clientcmd
.
FlagCertFile
,
clientcmd
.
FlagKeyFile
)
}
}
if
certPath
!=
""
{
if
certPath
!=
""
{
if
_
,
err
:=
ioutil
.
ReadFile
(
certPath
);
err
!=
nil
{
if
_
,
err
:=
ioutil
.
ReadFile
(
certPath
);
err
!=
nil
{
return
fmt
.
Errorf
(
"
E
rror reading %s data from %s: %v"
,
clientcmd
.
FlagCertFile
,
certPath
,
err
)
return
fmt
.
Errorf
(
"
e
rror reading %s data from %s: %v"
,
clientcmd
.
FlagCertFile
,
certPath
,
err
)
}
}
}
}
if
keyPath
!=
""
{
if
keyPath
!=
""
{
if
_
,
err
:=
ioutil
.
ReadFile
(
keyPath
);
err
!=
nil
{
if
_
,
err
:=
ioutil
.
ReadFile
(
keyPath
);
err
!=
nil
{
return
fmt
.
Errorf
(
"
E
rror reading %s data from %s: %v"
,
clientcmd
.
FlagKeyFile
,
keyPath
,
err
)
return
fmt
.
Errorf
(
"
e
rror reading %s data from %s: %v"
,
clientcmd
.
FlagKeyFile
,
keyPath
,
err
)
}
}
}
}
}
}
...
...
pkg/kubectl/cmd/config/create_cluster.go
View file @
b90797d9
...
@@ -69,6 +69,8 @@ func NewCmdConfigSetCluster(out io.Writer, configAccess ConfigAccess) *cobra.Com
...
@@ -69,6 +69,8 @@ func NewCmdConfigSetCluster(out io.Writer, configAccess ConfigAccess) *cobra.Com
err
:=
options
.
run
()
err
:=
options
.
run
()
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Fprintf
(
out
,
"%v
\n
"
,
err
)
fmt
.
Fprintf
(
out
,
"%v
\n
"
,
err
)
}
else
{
fmt
.
Fprintf
(
out
,
"cluster %q set.
\n
"
,
options
.
name
)
}
}
},
},
}
}
...
@@ -160,18 +162,18 @@ func (o *createClusterOptions) complete(cmd *cobra.Command) bool {
...
@@ -160,18 +162,18 @@ func (o *createClusterOptions) complete(cmd *cobra.Command) bool {
func
(
o
createClusterOptions
)
validate
()
error
{
func
(
o
createClusterOptions
)
validate
()
error
{
if
len
(
o
.
name
)
==
0
{
if
len
(
o
.
name
)
==
0
{
return
errors
.
New
(
"
Y
ou must specify a non-empty cluster name"
)
return
errors
.
New
(
"
y
ou must specify a non-empty cluster name"
)
}
}
if
o
.
insecureSkipTLSVerify
.
Value
()
&&
o
.
certificateAuthority
.
Value
()
!=
""
{
if
o
.
insecureSkipTLSVerify
.
Value
()
&&
o
.
certificateAuthority
.
Value
()
!=
""
{
return
errors
.
New
(
"
Y
ou cannot specify a certificate authority and insecure mode at the same time"
)
return
errors
.
New
(
"
y
ou cannot specify a certificate authority and insecure mode at the same time"
)
}
}
if
o
.
embedCAData
.
Value
()
{
if
o
.
embedCAData
.
Value
()
{
caPath
:=
o
.
certificateAuthority
.
Value
()
caPath
:=
o
.
certificateAuthority
.
Value
()
if
caPath
==
""
{
if
caPath
==
""
{
return
fmt
.
Errorf
(
"
Y
ou must specify a --%s to embed"
,
clientcmd
.
FlagCAFile
)
return
fmt
.
Errorf
(
"
y
ou must specify a --%s to embed"
,
clientcmd
.
FlagCAFile
)
}
}
if
_
,
err
:=
ioutil
.
ReadFile
(
caPath
);
err
!=
nil
{
if
_
,
err
:=
ioutil
.
ReadFile
(
caPath
);
err
!=
nil
{
return
fmt
.
Errorf
(
"
C
ould not read %s data from %s: %v"
,
clientcmd
.
FlagCAFile
,
caPath
,
err
)
return
fmt
.
Errorf
(
"
c
ould not read %s data from %s: %v"
,
clientcmd
.
FlagCAFile
,
caPath
,
err
)
}
}
}
}
...
...
pkg/kubectl/cmd/config/create_context.go
View file @
b90797d9
...
@@ -58,7 +58,9 @@ func NewCmdConfigSetContext(out io.Writer, configAccess ConfigAccess) *cobra.Com
...
@@ -58,7 +58,9 @@ func NewCmdConfigSetContext(out io.Writer, configAccess ConfigAccess) *cobra.Com
err
:=
options
.
run
()
err
:=
options
.
run
()
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Printf
(
"%v
\n
"
,
err
)
fmt
.
Fprintf
(
out
,
"%v
\n
"
,
err
)
}
else
{
fmt
.
Fprintf
(
out
,
"context %q set.
\n
"
,
options
.
name
)
}
}
},
},
}
}
...
@@ -124,7 +126,7 @@ func (o *createContextOptions) complete(cmd *cobra.Command) bool {
...
@@ -124,7 +126,7 @@ func (o *createContextOptions) complete(cmd *cobra.Command) bool {
func
(
o
createContextOptions
)
validate
()
error
{
func
(
o
createContextOptions
)
validate
()
error
{
if
len
(
o
.
name
)
==
0
{
if
len
(
o
.
name
)
==
0
{
return
errors
.
New
(
"
Y
ou must specify a non-empty context name"
)
return
errors
.
New
(
"
y
ou must specify a non-empty context name"
)
}
}
return
nil
return
nil
...
...
pkg/kubectl/cmd/config/set.go
View file @
b90797d9
...
@@ -55,7 +55,9 @@ func NewCmdConfigSet(out io.Writer, configAccess ConfigAccess) *cobra.Command {
...
@@ -55,7 +55,9 @@ func NewCmdConfigSet(out io.Writer, configAccess ConfigAccess) *cobra.Command {
err
:=
options
.
run
()
err
:=
options
.
run
()
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Printf
(
"%v
\n
"
,
err
)
fmt
.
Fprintf
(
out
,
"%v
\n
"
,
err
)
}
else
{
fmt
.
Fprintf
(
out
,
"property %q set.
\n
"
,
options
.
propertyName
)
}
}
},
},
}
}
...
@@ -103,11 +105,11 @@ func (o *setOptions) complete(cmd *cobra.Command) bool {
...
@@ -103,11 +105,11 @@ func (o *setOptions) complete(cmd *cobra.Command) bool {
func
(
o
setOptions
)
validate
()
error
{
func
(
o
setOptions
)
validate
()
error
{
if
len
(
o
.
propertyValue
)
==
0
{
if
len
(
o
.
propertyValue
)
==
0
{
return
errors
.
New
(
"
Y
ou cannot use set to unset a property"
)
return
errors
.
New
(
"
y
ou cannot use set to unset a property"
)
}
}
if
len
(
o
.
propertyName
)
==
0
{
if
len
(
o
.
propertyName
)
==
0
{
return
errors
.
New
(
"
Y
ou must specify a property"
)
return
errors
.
New
(
"
y
ou must specify a property"
)
}
}
return
nil
return
nil
...
@@ -124,7 +126,7 @@ func modifyConfig(curr reflect.Value, steps *navigationSteps, propertyValue stri
...
@@ -124,7 +126,7 @@ func modifyConfig(curr reflect.Value, steps *navigationSteps, propertyValue stri
switch
actualCurrValue
.
Kind
()
{
switch
actualCurrValue
.
Kind
()
{
case
reflect
.
Map
:
case
reflect
.
Map
:
if
!
steps
.
moreStepsRemaining
()
&&
!
unset
{
if
!
steps
.
moreStepsRemaining
()
&&
!
unset
{
return
fmt
.
Errorf
(
"
C
an't set a map to a value: %v"
,
actualCurrValue
)
return
fmt
.
Errorf
(
"
c
an't set a map to a value: %v"
,
actualCurrValue
)
}
}
mapKey
:=
reflect
.
ValueOf
(
currStep
.
stepValue
)
mapKey
:=
reflect
.
ValueOf
(
currStep
.
stepValue
)
...
@@ -152,14 +154,14 @@ func modifyConfig(curr reflect.Value, steps *navigationSteps, propertyValue stri
...
@@ -152,14 +154,14 @@ func modifyConfig(curr reflect.Value, steps *navigationSteps, propertyValue stri
case
reflect
.
String
:
case
reflect
.
String
:
if
steps
.
moreStepsRemaining
()
{
if
steps
.
moreStepsRemaining
()
{
return
fmt
.
Errorf
(
"
C
an't have more steps after a string. %v"
,
steps
)
return
fmt
.
Errorf
(
"
c
an't have more steps after a string. %v"
,
steps
)
}
}
actualCurrValue
.
SetString
(
propertyValue
)
actualCurrValue
.
SetString
(
propertyValue
)
return
nil
return
nil
case
reflect
.
Bool
:
case
reflect
.
Bool
:
if
steps
.
moreStepsRemaining
()
{
if
steps
.
moreStepsRemaining
()
{
return
fmt
.
Errorf
(
"
C
an't have more steps after a bool. %v"
,
steps
)
return
fmt
.
Errorf
(
"
c
an't have more steps after a bool. %v"
,
steps
)
}
}
boolValue
,
err
:=
toBool
(
propertyValue
)
boolValue
,
err
:=
toBool
(
propertyValue
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -198,9 +200,9 @@ func modifyConfig(curr reflect.Value, steps *navigationSteps, propertyValue stri
...
@@ -198,9 +200,9 @@ func modifyConfig(curr reflect.Value, steps *navigationSteps, propertyValue stri
}
}
}
}
return
fmt
.
Errorf
(
"
U
nable to locate path %#v under %v"
,
currStep
,
actualCurrValue
)
return
fmt
.
Errorf
(
"
u
nable to locate path %#v under %v"
,
currStep
,
actualCurrValue
)
}
}
panic
(
fmt
.
Errorf
(
"
U
nrecognized type: %v"
,
actualCurrValue
))
panic
(
fmt
.
Errorf
(
"
u
nrecognized type: %v"
,
actualCurrValue
))
}
}
pkg/kubectl/cmd/config/unset.go
View file @
b90797d9
...
@@ -47,7 +47,9 @@ func NewCmdConfigUnset(out io.Writer, configAccess ConfigAccess) *cobra.Command
...
@@ -47,7 +47,9 @@ func NewCmdConfigUnset(out io.Writer, configAccess ConfigAccess) *cobra.Command
err
:=
options
.
run
()
err
:=
options
.
run
()
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Printf
(
"%v
\n
"
,
err
)
fmt
.
Fprintf
(
out
,
"%v
\n
"
,
err
)
}
else
{
fmt
.
Fprintf
(
out
,
"property %q unset.
\n
"
,
options
.
propertyName
)
}
}
},
},
}
}
...
@@ -95,7 +97,7 @@ func (o *unsetOptions) complete(cmd *cobra.Command) bool {
...
@@ -95,7 +97,7 @@ func (o *unsetOptions) complete(cmd *cobra.Command) bool {
func
(
o
unsetOptions
)
validate
()
error
{
func
(
o
unsetOptions
)
validate
()
error
{
if
len
(
o
.
propertyName
)
==
0
{
if
len
(
o
.
propertyName
)
==
0
{
return
errors
.
New
(
"
Y
ou must specify a property"
)
return
errors
.
New
(
"
y
ou must specify a property"
)
}
}
return
nil
return
nil
...
...
pkg/kubectl/cmd/config/use_context.go
View file @
b90797d9
...
@@ -46,6 +46,8 @@ func NewCmdConfigUseContext(out io.Writer, configAccess ConfigAccess) *cobra.Com
...
@@ -46,6 +46,8 @@ func NewCmdConfigUseContext(out io.Writer, configAccess ConfigAccess) *cobra.Com
err
:=
options
.
run
()
err
:=
options
.
run
()
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Fprintf
(
out
,
"%v
\n
"
,
err
)
fmt
.
Fprintf
(
out
,
"%v
\n
"
,
err
)
}
else
{
fmt
.
Fprintf
(
out
,
"switched to context %q.
\n
"
,
options
.
contextName
)
}
}
},
},
}
}
...
@@ -86,7 +88,7 @@ func (o *useContextOptions) complete(cmd *cobra.Command) bool {
...
@@ -86,7 +88,7 @@ func (o *useContextOptions) complete(cmd *cobra.Command) bool {
func
(
o
useContextOptions
)
validate
(
config
*
clientcmdapi
.
Config
)
error
{
func
(
o
useContextOptions
)
validate
(
config
*
clientcmdapi
.
Config
)
error
{
if
len
(
o
.
contextName
)
==
0
{
if
len
(
o
.
contextName
)
==
0
{
return
errors
.
New
(
"
Y
ou must specify a current-context"
)
return
errors
.
New
(
"
y
ou must specify a current-context"
)
}
}
for
name
:=
range
config
.
Contexts
{
for
name
:=
range
config
.
Contexts
{
...
@@ -95,5 +97,5 @@ func (o useContextOptions) validate(config *clientcmdapi.Config) error {
...
@@ -95,5 +97,5 @@ func (o useContextOptions) validate(config *clientcmdapi.Config) error {
}
}
}
}
return
fmt
.
Errorf
(
"
N
o context exists with the name: %q."
,
o
.
contextName
)
return
fmt
.
Errorf
(
"
n
o context exists with the name: %q."
,
o
.
contextName
)
}
}
pkg/kubectl/cmd/config/view.go
View file @
b90797d9
...
@@ -40,7 +40,7 @@ type ViewOptions struct {
...
@@ -40,7 +40,7 @@ type ViewOptions struct {
}
}
const
(
const
(
view_long
=
`
displays M
erged kubeconfig settings or a specified kubeconfig file.
view_long
=
`
Displays m
erged kubeconfig settings or a specified kubeconfig file.
You can use --output=template --template=TEMPLATE to extract specific values.`
You can use --output=template --template=TEMPLATE to extract specific values.`
view_example
=
`# Show Merged kubeconfig settings.
view_example
=
`# Show Merged kubeconfig settings.
...
@@ -55,7 +55,7 @@ func NewCmdConfigView(out io.Writer, ConfigAccess ConfigAccess) *cobra.Command {
...
@@ -55,7 +55,7 @@ func NewCmdConfigView(out io.Writer, ConfigAccess ConfigAccess) *cobra.Command {
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"view"
,
Use
:
"view"
,
Short
:
"
displays M
erged kubeconfig settings or a specified kubeconfig file."
,
Short
:
"
Displays m
erged kubeconfig settings or a specified kubeconfig file."
,
Long
:
view_long
,
Long
:
view_long
,
Example
:
view_example
,
Example
:
view_example
,
Run
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
Run
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
...
...
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