From 815578295aee3417eb231701cc1e7e6294577021 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Sat, 13 May 2023 11:11:04 -0400 Subject: [PATCH] Revert "support short name for flowschema and prioritylevelconfiguration" This reverts commit 3dd0c4166399ea7374076cf02ff36fe2b75bd265. --- pkg/registry/flowcontrol/flowschema/storage/storage.go | 8 -------- .../prioritylevelconfiguration/storage/storage.go | 8 -------- 2 files changed, 16 deletions(-) diff --git a/pkg/registry/flowcontrol/flowschema/storage/storage.go b/pkg/registry/flowcontrol/flowschema/storage/storage.go index de29f55499d..5a1146201a6 100644 --- a/pkg/registry/flowcontrol/flowschema/storage/storage.go +++ b/pkg/registry/flowcontrol/flowschema/storage/storage.go @@ -72,14 +72,6 @@ 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 diff --git a/pkg/registry/flowcontrol/prioritylevelconfiguration/storage/storage.go b/pkg/registry/flowcontrol/prioritylevelconfiguration/storage/storage.go index b5f90bbf514..2149b5906f4 100644 --- a/pkg/registry/flowcontrol/prioritylevelconfiguration/storage/storage.go +++ b/pkg/registry/flowcontrol/prioritylevelconfiguration/storage/storage.go @@ -72,14 +72,6 @@ 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