diff --git a/contrib/completions/bash/kubectl b/contrib/completions/bash/kubectl index 250be199f49..6d8a9bc692a 100644 --- a/contrib/completions/bash/kubectl +++ b/contrib/completions/bash/kubectl @@ -331,7 +331,6 @@ _kubectl_describe() must_have_one_flag=() must_have_one_noun=() must_have_one_noun+=("limitrange") - must_have_one_noun+=("minion") must_have_one_noun+=("namespace") must_have_one_noun+=("node") must_have_one_noun+=("persistentvolume") diff --git a/pkg/api/install/install.go b/pkg/api/install/install.go index 0bce74be126..49b68407685 100644 --- a/pkg/api/install/install.go +++ b/pkg/api/install/install.go @@ -68,13 +68,10 @@ func init() { groupMeta.SelfLinker = runtime.SelfLinker(accessor) - // the list of kinds that are scoped at the root of the api hierarchy - // if a kind is not enumerated here, it is assumed to have a namespace scope // the list of kinds that are scoped at the root of the api hierarchy // if a kind is not enumerated here, it is assumed to have a namespace scope rootScoped := sets.NewString( "Node", - "Minion", "Namespace", "PersistentVolume", "ComponentStatus", diff --git a/pkg/controller/node/nodecontroller_test.go b/pkg/controller/node/nodecontroller_test.go index abe3998ca9d..b427aed70f6 100644 --- a/pkg/controller/node/nodecontroller_test.go +++ b/pkg/controller/node/nodecontroller_test.go @@ -75,7 +75,7 @@ func (m *FakeNodeHandler) Create(node *api.Node) (*api.Node, error) { }() for _, n := range m.Existing { if n.Name == node.Name { - return nil, apierrors.NewAlreadyExists("Minion", node.Name) + return nil, apierrors.NewAlreadyExists("Node", node.Name) } } if m.CreateHook == nil || m.CreateHook(m, node) { diff --git a/pkg/kubectl/describe.go b/pkg/kubectl/describe.go index f63c44e124b..0722389f536 100644 --- a/pkg/kubectl/describe.go +++ b/pkg/kubectl/describe.go @@ -73,7 +73,6 @@ func describerMap(c *client.Client) map[string]Describer { "Secret": &SecretDescriber{c}, "Service": &ServiceDescriber{c}, "ServiceAccount": &ServiceAccountDescriber{c}, - "Minion": &NodeDescriber{c}, "Node": &NodeDescriber{c}, "LimitRange": &LimitRangeDescriber{c}, "ResourceQuota": &ResourceQuotaDescriber{c}, diff --git a/pkg/registry/pod/etcd/etcd.go b/pkg/registry/pod/etcd/etcd.go index b1bb13ce0c4..c7f1aa6edf2 100644 --- a/pkg/registry/pod/etcd/etcd.go +++ b/pkg/registry/pod/etcd/etcd.go @@ -142,7 +142,7 @@ var _ = rest.Creater(&BindingREST{}) func (r *BindingREST) Create(ctx api.Context, obj runtime.Object) (out runtime.Object, err error) { binding := obj.(*api.Binding) // TODO: move me to a binding strategy - if len(binding.Target.Kind) != 0 && (binding.Target.Kind != "Node" && binding.Target.Kind != "Minion") { + if len(binding.Target.Kind) != 0 && binding.Target.Kind != "Node" { return nil, errors.NewInvalid("binding", binding.Name, fielderrors.ValidationErrorList{fielderrors.NewFieldInvalid("to.kind", binding.Target.Kind, "must be empty, 'Node', or 'Minion'")}) } if len(binding.Target.Name) == 0 { diff --git a/pkg/registry/pod/etcd/etcd_test.go b/pkg/registry/pod/etcd/etcd_test.go index 43a8a2340af..ed7b5947ed7 100644 --- a/pkg/registry/pod/etcd/etcd_test.go +++ b/pkg/registry/pod/etcd/etcd_test.go @@ -541,13 +541,6 @@ func TestEtcdCreateBinding(t *testing.T) { }, errOK: func(err error) bool { return err == nil }, }, - "kindMinion": { - binding: api.Binding{ - ObjectMeta: api.ObjectMeta{Namespace: api.NamespaceDefault, Name: "foo"}, - Target: api.ObjectReference{Name: "machine4", Kind: "Minion"}, - }, - errOK: func(err error) bool { return err == nil }, - }, } for k, test := range testCases { storage, bindingStorage, _, fakeClient := newStorage(t)