Skip to content

Commit

Permalink
Rename Kclient to KubeClient
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Oct 11, 2016
1 parent 8f6030a commit a08181f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/admin/node/listpods.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (l *ListPodsOptions) runListPods(node *kapi.Node, printer kubectl.ResourceP
fieldSelector := fields.Set{GetPodHostFieldLabel(node.TypeMeta.APIVersion): node.ObjectMeta.Name}.AsSelector()

// Filter all pods that satisfies pod label selector and belongs to the given node
pods, err := l.Options.Kclient.Pods(kapi.NamespaceAll).List(kapi.ListOptions{LabelSelector: labelSelector, FieldSelector: fieldSelector})
pods, err := l.Options.KubeClient.Pods(kapi.NamespaceAll).List(kapi.ListOptions{LabelSelector: labelSelector, FieldSelector: fieldSelector})
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/admin/node/node_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

type NodeOptions struct {
DefaultNamespace string
Kclient *client.Client
KubeClient *client.Client
Writer io.Writer
ErrWriter io.Writer

Expand Down Expand Up @@ -61,7 +61,7 @@ func (n *NodeOptions) Complete(f *clientcmd.Factory, c *cobra.Command, args []st
mapper, typer := f.Object(false)

n.DefaultNamespace = defaultNamespace
n.Kclient = kc
n.KubeClient = kc
n.Writer = out
n.ErrWriter = errout
n.Mapper = mapper
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/admin/node/schedulable.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (s *SchedulableOptions) Run() error {
for _, node := range nodes {
if node.Spec.Unschedulable != unschedulable {
node.Spec.Unschedulable = unschedulable
node, err = s.Options.Kclient.Nodes().Update(node)
node, err = s.Options.KubeClient.Nodes().Update(node)
if err != nil {
errList = append(errList, err)
continue
Expand Down

0 comments on commit a08181f

Please sign in to comment.