mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Merge pull request #116208 from kkkkun/support-short-name-for-flowschema-and-prioritylevelconfigurations
support short name for flowschema and prioritylevelconfiguration
This commit is contained in:
commit
3cd81876bd
2 changed files with 16 additions and 0 deletions
|
|
@ -72,6 +72,14 @@ func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
|
|||
return &REST{store}, &StatusREST{store: &statusStore}, nil
|
||||
}
|
||||
|
||||
// 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{"fs"}
|
||||
}
|
||||
|
||||
// StatusREST implements the REST endpoint for changing the status of a flow schema.
|
||||
type StatusREST struct {
|
||||
store *genericregistry.Store
|
||||
|
|
|
|||
|
|
@ -72,6 +72,14 @@ func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
|
|||
return &REST{store}, &StatusREST{store: &statusStore}, nil
|
||||
}
|
||||
|
||||
// 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{"plc"}
|
||||
}
|
||||
|
||||
// StatusREST implements the REST endpoint for changing the status of a priority level configuration.
|
||||
type StatusREST struct {
|
||||
store *genericregistry.Store
|
||||
|
|
|
|||
Loading…
Reference in a new issue