Skip to content

Commit

Permalink
cmd: added missing short descriptions to kube commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mauri870 committed Jun 13, 2024
1 parent 63bc331 commit 364df36
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion cmd/kube-apiserver/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ func init() {
func NewAPIServerCommand() *cobra.Command {
s := options.NewServerRunOptions()
cmd := &cobra.Command{
Use: "kube-apiserver",
Use: "kube-apiserver",
Short: "Services REST operations and provides the frontend to the cluster",
Long: `The Kubernetes API server validates and configures data
for the api objects which include pods, services, replicationcontrollers, and
others. The API Server services REST operations and provides the frontend to the
Expand Down
6 changes: 4 additions & 2 deletions cmd/kube-controller-manager/app/controllermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ package app
import (
"context"
"fmt"
"k8s.io/apimachinery/pkg/runtime/schema"
"math/rand"
"net/http"
"os"
"sort"
"time"

"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/spf13/cobra"

"k8s.io/apimachinery/pkg/api/meta"
Expand Down Expand Up @@ -111,7 +112,8 @@ func NewControllerManagerCommand() *cobra.Command {
}

cmd := &cobra.Command{
Use: "kube-controller-manager",
Use: "kube-controller-manager",
Short: "A daemon that embeds the core control loops shipped with Kubernetes",
Long: `The Kubernetes controller manager is a daemon that embeds
the core control loops shipped with Kubernetes. In applications of robotics and
automation, a control loop is a non-terminating loop that regulates the state of
Expand Down
3 changes: 2 additions & 1 deletion cmd/kube-proxy/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@ func NewProxyCommand() *cobra.Command {
opts := NewOptions()

cmd := &cobra.Command{
Use: "kube-proxy",
Use: "kube-proxy",
Short: "A daemon that runs on each node reflecting services from the kubernetes api",
Long: `The Kubernetes network proxy runs on each node. This
reflects services as defined in the Kubernetes API on each node and can do simple
TCP, UDP, and SCTP stream forwarding or round robin TCP, UDP, and SCTP forwarding across a set of backends.
Expand Down
3 changes: 2 additions & 1 deletion cmd/kube-scheduler/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ func NewSchedulerCommand(registryOptions ...Option) *cobra.Command {
opts := options.NewOptions()

cmd := &cobra.Command{
Use: "kube-scheduler",
Use: "kube-scheduler",
Short: "Controls performance, capacity and availability through policies and topology awareness",
Long: `The Kubernetes scheduler is a control plane process which assigns
Pods to Nodes. The scheduler determines which Nodes are valid placements for
each Pod in the scheduling queue according to constraints and available
Expand Down
3 changes: 2 additions & 1 deletion cmd/kubelet/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ func NewKubeletCommand() *cobra.Command {
}

cmd := &cobra.Command{
Use: componentKubelet,
Use: componentKubelet,
Short: `The primary "node agent" that runs on each node`,
Long: `The kubelet is the primary "node agent" that runs on each
node. It can register the node with the apiserver using one of: the hostname; a flag to
override the hostname; or specific logic for a cloud provider.
Expand Down

0 comments on commit 364df36

Please sign in to comment.