Skip to content

Commit

Permalink
Merge pull request #1558 from rsteube/kubectl-groups
Browse files Browse the repository at this point in the history
kubectl: added groups
  • Loading branch information
rsteube authored Mar 17, 2023
2 parents 10b9cae + 7345f5b commit c46df8e
Show file tree
Hide file tree
Showing 36 changed files with 151 additions and 105 deletions.
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/annotate.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var annotateCmd = &cobra.Command{
Use: "annotate",
Short: "Update the annotations on a resource",
Run: func(cmd *cobra.Command, args []string) {},
Use: "annotate",
Short: "Update the annotations on a resource",
GroupID: "settings",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
)

var applyCmd = &cobra.Command{
Use: "apply",
Short: "Apply a configuration to a resource by file name or stdin",
Run: func(cmd *cobra.Command, args []string) {},
Use: "apply",
Short: "Apply a configuration to a resource by file name or stdin",
GroupID: "advanced",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var attachCmd = &cobra.Command{
Use: "attach",
Short: "Attach to a running container",
Run: func(cmd *cobra.Command, args []string) {},
Use: "attach",
Short: "Attach to a running container",
GroupID: "troubleshooting",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
)

var authCmd = &cobra.Command{
Use: "auth",
Short: "Inspect authorization",
Run: func(cmd *cobra.Command, args []string) {},
Use: "auth",
Short: "Inspect authorization",
GroupID: "troubleshooting",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/autoscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var autoscaleCmd = &cobra.Command{
Use: "autoscale",
Short: "Auto-scale a deployment, replica set, stateful set, or replication controller",
Run: func(cmd *cobra.Command, args []string) {},
Use: "autoscale",
Short: "Auto-scale a deployment, replica set, stateful set, or replication controller",
GroupID: "deploy",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
)

var certificateCmd = &cobra.Command{
Use: "certificate",
Short: "Modify certificate resources.",
Run: func(cmd *cobra.Command, args []string) {},
Use: "certificate",
Short: "Modify certificate resources.",
GroupID: "cluster management",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/clusterInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
)

var clusterInfoCmd = &cobra.Command{
Use: "cluster-info",
Short: "Display cluster information",
Run: func(cmd *cobra.Command, args []string) {},
Use: "cluster-info",
Short: "Display cluster information",
GroupID: "cluster management",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
)

var completionCmd = &cobra.Command{
Use: "completion",
Short: "Output shell completion code for the specified shell (bash, zsh, fish, or powershell)",
Run: func(cmd *cobra.Command, args []string) {},
Use: "completion",
Short: "Output shell completion code for the specified shell (bash, zsh, fish, or powershell)",
GroupID: "settings",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/cordon.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var cordonCmd = &cobra.Command{
Use: "cordon",
Short: "Mark node as unschedulable",
Run: func(cmd *cobra.Command, args []string) {},
Use: "cordon",
Short: "Mark node as unschedulable",
GroupID: "cluster management",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (
)

var cpCmd = &cobra.Command{
Use: "cp",
Short: "Copy files and directories to and from containers",
Run: func(cmd *cobra.Command, args []string) {},
Use: "cp",
Short: "Copy files and directories to and from containers",
GroupID: "troubleshooting",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
)

var createCmd = &cobra.Command{
Use: "create",
Short: "Create a resource from a file or from stdin",
Run: func(cmd *cobra.Command, args []string) {},
Use: "create",
Short: "Create a resource from a file or from stdin",
GroupID: "basic beginner",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
)

var debugCmd = &cobra.Command{
Use: "debug",
Short: "Create debugging sessions for troubleshooting workloads and nodes",
Run: func(cmd *cobra.Command, args []string) {},
Use: "debug",
Short: "Create debugging sessions for troubleshooting workloads and nodes",
GroupID: "troubleshooting",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var deleteCmd = &cobra.Command{
Use: "delete",
Short: "Delete resources by file names, stdin, resources and names, or by resources and label selector",
Run: func(cmd *cobra.Command, args []string) {},
Use: "delete",
Short: "Delete resources by file names, stdin, resources and names, or by resources and label selector",
GroupID: "basic intermediate",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var describeCmd = &cobra.Command{
Use: "describe",
Short: "Show details of a specific resource or group of resources",
Run: func(cmd *cobra.Command, args []string) {},
Use: "describe",
Short: "Show details of a specific resource or group of resources",
GroupID: "troubleshooting",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
)

var diffCmd = &cobra.Command{
Use: "diff",
Short: "Diff the live version against a would-be applied version",
Run: func(cmd *cobra.Command, args []string) {},
Use: "diff",
Short: "Diff the live version against a would-be applied version",
GroupID: "advanced",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var drainCmd = &cobra.Command{
Use: "drain",
Short: "Drain node in preparation for maintenance",
Run: func(cmd *cobra.Command, args []string) {},
Use: "drain",
Short: "Drain node in preparation for maintenance",
GroupID: "cluster management",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
)

var editCmd = &cobra.Command{
Use: "edit",
Short: "Edit a resource on the server",
Run: func(cmd *cobra.Command, args []string) {},
Use: "edit",
Short: "Edit a resource on the server",
GroupID: "basic intermediate",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var execCmd = &cobra.Command{
Use: "exec",
Short: "Execute a command in a container",
Run: func(cmd *cobra.Command, args []string) {},
Use: "exec",
Short: "Execute a command in a container",
GroupID: "troubleshooting",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/explain.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var explainCmd = &cobra.Command{
Use: "explain",
Short: "Get documentation for a resource",
Run: func(cmd *cobra.Command, args []string) {},
Use: "explain",
Short: "Get documentation for a resource",
GroupID: "basic intermediate",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/expose.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var exposeCmd = &cobra.Command{
Use: "expose",
Short: "Take a replication controller, service, deployment or pod and expose it as a new Kubernetes service",
Run: func(cmd *cobra.Command, args []string) {},
Use: "expose",
Short: "Take a replication controller, service, deployment or pod and expose it as a new Kubernetes service",
GroupID: "basic beginner",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var getCmd = &cobra.Command{
Use: "get",
Short: "Display one or many resources",
Run: func(cmd *cobra.Command, args []string) {},
Use: "get",
Short: "Display one or many resources",
GroupID: "basic intermediate",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
)

var kustomizeCmd = &cobra.Command{
Use: "kustomize",
Short: "Build a kustomization target from a directory or URL.",
Run: func(cmd *cobra.Command, args []string) {},
Use: "kustomize",
Short: "Build a kustomization target from a directory or URL.",
GroupID: "advanced",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var labelCmd = &cobra.Command{
Use: "label",
Short: "Update the labels on a resource",
Run: func(cmd *cobra.Command, args []string) {},
Use: "label",
Short: "Update the labels on a resource",
GroupID: "settings",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var patchCmd = &cobra.Command{
Use: "patch",
Short: "Update fields of a resource",
Run: func(cmd *cobra.Command, args []string) {},
Use: "patch",
Short: "Update fields of a resource",
GroupID: "advanced",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/portForward.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
)

var portForwardCmd = &cobra.Command{
Use: "port-forward",
Short: "Forward one or more local ports to a pod",
Run: func(cmd *cobra.Command, args []string) {},
Use: "port-forward",
Short: "Forward one or more local ports to a pod",
GroupID: "troubleshooting",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

var proxyCmd = &cobra.Command{
Use: "proxy",
Short: "Run a proxy to the Kubernetes API server",
Run: func(cmd *cobra.Command, args []string) {},
Use: "proxy",
Short: "Run a proxy to the Kubernetes API server",
GroupID: "troubleshooting",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/replace.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
)

var replaceCmd = &cobra.Command{
Use: "replace",
Short: "Replace a resource by file name or stdin",
Run: func(cmd *cobra.Command, args []string) {},
Use: "replace",
Short: "Replace a resource by file name or stdin",
GroupID: "advanced",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions completers/kubectl_completer/cmd/rollout.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
)

var rolloutCmd = &cobra.Command{
Use: "rollout",
Short: "Manage the rollout of a resource",
Run: func(cmd *cobra.Command, args []string) {},
Use: "rollout",
Short: "Manage the rollout of a resource",
GroupID: "deploy",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
Expand Down
Loading

0 comments on commit c46df8e

Please sign in to comment.