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
d285faaf
Commit
d285faaf
authored
May 16, 2016
by
Michal Rostecki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include petsets in kubectl valid commands
Petsets are already implemented in kubectl, but there were no hints for that subcommand. Fixes #25615
parent
d1cc7f9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
cmd.go
pkg/kubectl/cmd/cmd.go
+1
-0
kubectl.go
pkg/kubectl/kubectl.go
+5
-5
No files found.
pkg/kubectl/cmd/cmd.go
View file @
d285faaf
...
@@ -164,6 +164,7 @@ __custom_func() {
...
@@ -164,6 +164,7 @@ __custom_func() {
* limitranges (aka 'limits')
* limitranges (aka 'limits')
* nodes (aka 'no')
* nodes (aka 'no')
* namespaces (aka 'ns')
* namespaces (aka 'ns')
* petsets (alpha feature, may be unstable)
* pods (aka 'po')
* pods (aka 'po')
* persistentvolumes (aka 'pv')
* persistentvolumes (aka 'pv')
* persistentvolumeclaims (aka 'pvc')
* persistentvolumeclaims (aka 'pvc')
...
...
pkg/kubectl/kubectl.go
View file @
d285faaf
...
@@ -31,11 +31,11 @@ import (
...
@@ -31,11 +31,11 @@ import (
const
(
const
(
kubectlAnnotationPrefix
=
"kubectl.kubernetes.io/"
kubectlAnnotationPrefix
=
"kubectl.kubernetes.io/"
// TODO: auto-generate this
// TODO: auto-generate this
PossibleResourceTypes
=
`Possible resource types include (case insensitive): pods (
po), services (svc
), deployments,
PossibleResourceTypes
=
`Possible resource types include (case insensitive): pods (
aka 'po'), services (aka 'svc'
), deployments,
replicasets (
rs), replicationcontrollers (rc), nodes (no), events (ev), limitranges (limits
),
replicasets (
aka 'rs'), replicationcontrollers (aka 'rc'), nodes (aka 'no'), events (aka 'ev'), limitranges (aka 'limits'
),
persistentvolumes (
pv), persistentvolumeclaims (pvc), resourcequotas (quota), namespaces (ns
),
persistentvolumes (
aka 'pv'), persistentvolumeclaims (aka 'pvc'), resourcequotas (aka 'quota'), namespaces (aka 'ns'
),
serviceaccounts (
sa), ingresses (ing), horizontalpodautoscalers (hpa), daemonsets (ds
), configmaps,
serviceaccounts (
aka 'sa'), ingresses (aka 'ing'), horizontalpodautoscalers (aka 'hpa'), daemonsets (aka 'ds'
), configmaps,
componentstatuses (
cs), endpoints (ep),
and secrets.`
componentstatuses (
aka 'cs), endpoints (aka 'ep'), petsets (alpha feature, may be unstable)
and secrets.`
)
)
type
NamespaceInfo
struct
{
type
NamespaceInfo
struct
{
...
...
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