Commit e1fdb8b0 authored by Justin Santa Barbara's avatar Justin Santa Barbara

Add sts alias for kubectl statefulset

Saves a lot of typing!
parent 49626c97
......@@ -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"}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment