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
e36aa770
Commit
e36aa770
authored
Jun 09, 2015
by
krousey
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9505 from mikedanese/remove-flags
remove kubectl flags from usage examples that no longer exist
parents
033c1f8d
401d3c43
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
11 deletions
+1
-11
kubectl_config_view.md
docs/kubectl_config_view.md
+1
-4
kubectl-config-view.1
docs/man/man1/kubectl-config-view.1
+0
-3
view.go
pkg/kubectl/cmd/config/view.go
+0
-4
No files found.
docs/kubectl_config_view.md
View file @
e36aa770
...
...
@@ -19,9 +19,6 @@ kubectl config view
// Show Merged kubeconfig settings.
$ kubectl config view
// Show only local kubeconfig settings
$ kubectl config view --local
// Get the password for the e2e user
$ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2e" }}{{ index .user.password }}{{end}}{{end}}'
```
...
...
@@ -72,6 +69,6 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
### SEE ALSO
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
###### Auto generated by spf13/cobra at 2015-0
5-21 10:33:11.216559289
+0000 UTC
###### Auto generated by spf13/cobra at 2015-0
6-09 19:55:35.92095292
+0000 UTC
[

]()
docs/man/man1/kubectl-config-view.1
View file @
e36aa770
...
...
@@ -164,9 +164,6 @@ You can use \-\-output=template \-\-template=TEMPLATE to extract specific values
// Show Merged kubeconfig settings.
$ kubectl config view
// Show only local kubeconfig settings
$ kubectl config view \-\-local
// Get the password for the e2e user
$ kubectl config view \-o template \-\-template='\{\{range .users\}\}\{\{ if eq .name "e2e" \}\}\{\{ index .user.password \}\}\{\{end\}\}\{\{end\}\}'
...
...
pkg/kubectl/cmd/config/view.go
View file @
e36aa770
...
...
@@ -46,9 +46,6 @@ You can use --output=template --template=TEMPLATE to extract specific values.`
view_example
=
`// Show Merged kubeconfig settings.
$ kubectl config view
// Show only local kubeconfig settings
$ kubectl config view --local
// Get the password for the e2e user
$ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2e" }}{{ index .user.password }}{{end}}{{end}}'`
)
...
...
@@ -119,7 +116,6 @@ func (o ViewOptions) Run(out io.Writer, printer kubectl.ResourcePrinter) error {
}
func
(
o
*
ViewOptions
)
Complete
()
bool
{
// if --kubeconfig, --global, or --local is specified, then merging doesn't make sense since you're declaring precise intent
if
o
.
ConfigAccess
.
IsExplicitFile
()
{
if
!
o
.
Merge
.
Provided
()
{
o
.
Merge
.
Set
(
"false"
)
...
...
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