mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Add sts alias for kubectl statefulset
Saves a lot of typing!
This commit is contained in:
parent
49626c975b
commit
e1fdb8b027
@ -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) {
|
func (r *StatusREST) Update(ctx genericapirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
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"}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user