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
b9e974b2
Commit
b9e974b2
authored
Jul 23, 2015
by
Vish Kannan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11313 from thockin/rest-shortcut-for-ns
Add an 'ns' shortcut, tidy capital letters
parents
11940011
30697aee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
kubectl.go
pkg/kubectl/kubectl.go
+7
-7
No files found.
pkg/kubectl/kubectl.go
View file @
b9e974b2
...
@@ -106,16 +106,16 @@ func expandResourceShortcut(resource string) string {
...
@@ -106,16 +106,16 @@ func expandResourceShortcut(resource string) string {
"cs"
:
"componentstatuses"
,
"cs"
:
"componentstatuses"
,
"ev"
:
"events"
,
"ev"
:
"events"
,
"ep"
:
"endpoints"
,
"ep"
:
"endpoints"
,
"limits"
:
"limit
R
anges"
,
"limits"
:
"limit
r
anges"
,
"no"
:
"nodes"
,
"no"
:
"nodes"
,
"ns"
:
"namespaces"
,
"po"
:
"pods"
,
"po"
:
"pods"
,
"pv"
:
"persistent
V
olumes"
,
"pv"
:
"persistent
v
olumes"
,
"pvc"
:
"persistent
VolumeC
laims"
,
"pvc"
:
"persistent
volumec
laims"
,
"quota"
:
"resource
Q
uotas"
,
"quota"
:
"resource
q
uotas"
,
"rc"
:
"replicationcontrollers"
,
"rc"
:
"replicationcontrollers"
,
// DEPRECATED: will be removed before 1.0
"se"
:
"services"
,
// DEPRECATED: will be removed before 1.0
"se"
:
"services"
,
"svc"
:
"services"
,
"svc"
:
"services"
,
}
}
if
expanded
,
ok
:=
shortForms
[
resource
];
ok
{
if
expanded
,
ok
:=
shortForms
[
resource
];
ok
{
return
expanded
return
expanded
...
...
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