Merge pull request #45595 from justinsb/sts_alias_2

Automatic merge from submit-queue

Add sts alias for kubectl statefulset
pull/6/head
Kubernetes Submit Queue 2017-05-10 16:06:58 -07:00 committed by GitHub
commit 14b898d115
1 changed files with 8 additions and 0 deletions

View File

@ -76,3 +76,11 @@ func (r *StatusREST) Get(ctx genericapirequest.Context, name string, options *me
func (r *StatusREST) Update(ctx genericapirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
return r.store.Update(ctx, name, objInfo)
}
// Implement ShortNamesProvider
var _ rest.ShortNamesProvider = &REST{}
// ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (r *REST) ShortNames() []string {
return []string{"sts"}
}