diff --git a/cluster-autoscaler/config/crd/provisioning.k8s.io_provisioningrequests.yaml b/cluster-autoscaler/config/crd/autoscaling.x-k8s.io_provisioningrequests.yaml similarity index 98% rename from cluster-autoscaler/config/crd/provisioning.k8s.io_provisioningrequests.yaml rename to cluster-autoscaler/config/crd/autoscaling.x-k8s.io_provisioningrequests.yaml index 30c1d699ad6e..443c346cbed1 100644 --- a/cluster-autoscaler/config/crd/provisioning.k8s.io_provisioningrequests.yaml +++ b/cluster-autoscaler/config/crd/autoscaling.x-k8s.io_provisioningrequests.yaml @@ -3,11 +3,10 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - api-approved.kubernetes.io: https://github.com/kubernetes/autoscaler/pull/5848 controller-gen.kubebuilder.io/version: v0.13.0 - name: provisioningrequests.provisioning.k8s.io + name: provisioningrequests.autoscaling.x-k8s.io spec: - group: provisioning.k8s.io + group: autoscaling.x-k8s.io names: kind: ProvisioningRequest listKind: ProvisioningRequestList diff --git a/cluster-autoscaler/hack/update-codegen.sh b/cluster-autoscaler/hack/update-codegen.sh index 33b329e13cd2..5d19ea638cd2 100755 --- a/cluster-autoscaler/hack/update-codegen.sh +++ b/cluster-autoscaler/hack/update-codegen.sh @@ -32,7 +32,7 @@ chmod +x "${CODEGEN_PKG}"/generate-internal-groups.sh bash "${CODEGEN_PKG}"/generate-groups.sh "applyconfiguration,client,deepcopy,informer,lister" \ k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client \ k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis \ - provisioning.k8s.io:v1beta1 \ + autoscaling.x-k8s.io:v1beta1 \ --go-header-file "${SCRIPT_ROOT}"/../hack/boilerplate/boilerplate.generatego.txt chmod -x "${CODEGEN_PKG}"/generate-groups.sh diff --git a/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/doc.go b/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/doc.go similarity index 95% rename from cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/doc.go rename to cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/doc.go index aa1e46ba67bf..ff0f1d9bdcc5 100644 --- a/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/doc.go +++ b/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/doc.go @@ -17,5 +17,5 @@ limitations under the License. // Package v1beta1 contains definitions of Provisioning Request related objects. // +k8s:deepcopy-gen=package // +k8s:defaulter-gen=TypeMeta -// +groupName=provisioning.k8s.io +// +groupName=autoscaling.x-k8s.io package v1beta1 diff --git a/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/register.go b/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/register.go similarity index 98% rename from cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/register.go rename to cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/register.go index 11595d07db2c..3f3a361b0485 100644 --- a/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/register.go +++ b/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/register.go @@ -25,7 +25,7 @@ import ( const ( // GroupName represents the group name for ProvisioningRequest resources. - GroupName = "provisioning.k8s.io" + GroupName = "autoscaling.x-k8s.io" // GroupVersion represents the group name for ProvisioningRequest resources. GroupVersion = "v1beta1" ) diff --git a/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/types.go b/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/types.go similarity index 98% rename from cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/types.go rename to cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/types.go index 1aa1ccebe124..68b771907559 100644 --- a/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/types.go +++ b/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/types.go @@ -37,7 +37,6 @@ import ( // // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:metadata:annotations="api-approved.kubernetes.io=https://github.com/kubernetes/autoscaler/pull/5848" // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type ProvisioningRequest struct { metav1.TypeMeta `json:",inline"` diff --git a/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/zz_generated.deepcopy.go b/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/zz_generated.deepcopy.go similarity index 100% rename from cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1/zz_generated.deepcopy.go rename to cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1/zz_generated.deepcopy.go diff --git a/cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/podset.go b/cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/podset.go similarity index 100% rename from cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/podset.go rename to cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/podset.go diff --git a/cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/provisioningrequest.go b/cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go similarity index 99% rename from cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/provisioningrequest.go rename to cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go index a8697c499bce..7a420da3c42a 100644 --- a/cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/provisioningrequest.go +++ b/cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go @@ -40,7 +40,7 @@ func ProvisioningRequest(name, namespace string) *ProvisioningRequestApplyConfig b.WithName(name) b.WithNamespace(namespace) b.WithKind("ProvisioningRequest") - b.WithAPIVersion("provisioning.k8s.io/v1beta1") + b.WithAPIVersion("autoscaling.x-k8s.io/v1beta1") return b } diff --git a/cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/provisioningrequestspec.go b/cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/provisioningrequestspec.go similarity index 100% rename from cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/provisioningrequestspec.go rename to cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/provisioningrequestspec.go diff --git a/cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/provisioningrequeststatus.go b/cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/provisioningrequeststatus.go similarity index 100% rename from cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/provisioningrequeststatus.go rename to cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/provisioningrequeststatus.go diff --git a/cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/reference.go b/cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/reference.go similarity index 100% rename from cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1/reference.go rename to cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1/reference.go diff --git a/cluster-autoscaler/provisioningrequests/client/applyconfiguration/utils.go b/cluster-autoscaler/provisioningrequests/client/applyconfiguration/utils.go index 06538b9c896a..bf93c42af3dd 100644 --- a/cluster-autoscaler/provisioningrequests/client/applyconfiguration/utils.go +++ b/cluster-autoscaler/provisioningrequests/client/applyconfiguration/utils.go @@ -20,25 +20,25 @@ package applyconfiguration import ( schema "k8s.io/apimachinery/pkg/runtime/schema" - v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1" - provisioningk8siov1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1" + v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1" + autoscalingxk8siov1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1" ) // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no // apply configuration type exists for the given GroupVersionKind. func ForKind(kind schema.GroupVersionKind) interface{} { switch kind { - // Group=provisioning.k8s.io, Version=v1beta1 + // Group=autoscaling.x-k8s.io, Version=v1beta1 case v1beta1.SchemeGroupVersion.WithKind("PodSet"): - return &provisioningk8siov1beta1.PodSetApplyConfiguration{} + return &autoscalingxk8siov1beta1.PodSetApplyConfiguration{} case v1beta1.SchemeGroupVersion.WithKind("ProvisioningRequest"): - return &provisioningk8siov1beta1.ProvisioningRequestApplyConfiguration{} + return &autoscalingxk8siov1beta1.ProvisioningRequestApplyConfiguration{} case v1beta1.SchemeGroupVersion.WithKind("ProvisioningRequestSpec"): - return &provisioningk8siov1beta1.ProvisioningRequestSpecApplyConfiguration{} + return &autoscalingxk8siov1beta1.ProvisioningRequestSpecApplyConfiguration{} case v1beta1.SchemeGroupVersion.WithKind("ProvisioningRequestStatus"): - return &provisioningk8siov1beta1.ProvisioningRequestStatusApplyConfiguration{} + return &autoscalingxk8siov1beta1.ProvisioningRequestStatusApplyConfiguration{} case v1beta1.SchemeGroupVersion.WithKind("Reference"): - return &provisioningk8siov1beta1.ReferenceApplyConfiguration{} + return &autoscalingxk8siov1beta1.ReferenceApplyConfiguration{} } return nil diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/clientset.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/clientset.go index e0a812e75e5d..c259ca99590b 100644 --- a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/clientset.go +++ b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/clientset.go @@ -22,7 +22,7 @@ import ( "fmt" "net/http" - provisioningv1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1" + autoscalingv1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" @@ -30,18 +30,18 @@ import ( type Interface interface { Discovery() discovery.DiscoveryInterface - ProvisioningV1beta1() provisioningv1beta1.ProvisioningV1beta1Interface + AutoscalingV1beta1() autoscalingv1beta1.AutoscalingV1beta1Interface } // Clientset contains the clients for groups. type Clientset struct { *discovery.DiscoveryClient - provisioningV1beta1 *provisioningv1beta1.ProvisioningV1beta1Client + autoscalingV1beta1 *autoscalingv1beta1.AutoscalingV1beta1Client } -// ProvisioningV1beta1 retrieves the ProvisioningV1beta1Client -func (c *Clientset) ProvisioningV1beta1() provisioningv1beta1.ProvisioningV1beta1Interface { - return c.provisioningV1beta1 +// AutoscalingV1beta1 retrieves the AutoscalingV1beta1Client +func (c *Clientset) AutoscalingV1beta1() autoscalingv1beta1.AutoscalingV1beta1Interface { + return c.autoscalingV1beta1 } // Discovery retrieves the DiscoveryClient @@ -88,7 +88,7 @@ func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, var cs Clientset var err error - cs.provisioningV1beta1, err = provisioningv1beta1.NewForConfigAndClient(&configShallowCopy, httpClient) + cs.autoscalingV1beta1, err = autoscalingv1beta1.NewForConfigAndClient(&configShallowCopy, httpClient) if err != nil { return nil, err } @@ -113,7 +113,7 @@ func NewForConfigOrDie(c *rest.Config) *Clientset { // New creates a new Clientset for the given RESTClient. func New(c rest.Interface) *Clientset { var cs Clientset - cs.provisioningV1beta1 = provisioningv1beta1.New(c) + cs.autoscalingV1beta1 = autoscalingv1beta1.New(c) cs.DiscoveryClient = discovery.NewDiscoveryClient(c) return &cs diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/fake/clientset_generated.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/fake/clientset_generated.go index 074edbbe223c..4545dfe2f890 100644 --- a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/fake/clientset_generated.go +++ b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/fake/clientset_generated.go @@ -22,8 +22,8 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" clientset "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned" - provisioningv1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1" - fakeprovisioningv1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/fake" + autoscalingv1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1" + fakeautoscalingv1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/fake" "k8s.io/client-go/discovery" fakediscovery "k8s.io/client-go/discovery/fake" "k8s.io/client-go/testing" @@ -79,7 +79,7 @@ var ( _ testing.FakeClient = &Clientset{} ) -// ProvisioningV1beta1 retrieves the ProvisioningV1beta1Client -func (c *Clientset) ProvisioningV1beta1() provisioningv1beta1.ProvisioningV1beta1Interface { - return &fakeprovisioningv1beta1.FakeProvisioningV1beta1{Fake: &c.Fake} +// AutoscalingV1beta1 retrieves the AutoscalingV1beta1Client +func (c *Clientset) AutoscalingV1beta1() autoscalingv1beta1.AutoscalingV1beta1Interface { + return &fakeautoscalingv1beta1.FakeAutoscalingV1beta1{Fake: &c.Fake} } diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/fake/register.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/fake/register.go index 08d60ff803d3..e189af6733b3 100644 --- a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/fake/register.go +++ b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/fake/register.go @@ -24,14 +24,14 @@ import ( schema "k8s.io/apimachinery/pkg/runtime/schema" serializer "k8s.io/apimachinery/pkg/runtime/serializer" utilruntime "k8s.io/apimachinery/pkg/util/runtime" - provisioningv1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1" + autoscalingv1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1" ) var scheme = runtime.NewScheme() var codecs = serializer.NewCodecFactory(scheme) var localSchemeBuilder = runtime.SchemeBuilder{ - provisioningv1beta1.AddToScheme, + autoscalingv1beta1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/scheme/register.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/scheme/register.go index 6b67cea5ea62..85d4b7cd320f 100644 --- a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/scheme/register.go +++ b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/scheme/register.go @@ -24,14 +24,14 @@ import ( schema "k8s.io/apimachinery/pkg/runtime/schema" serializer "k8s.io/apimachinery/pkg/runtime/serializer" utilruntime "k8s.io/apimachinery/pkg/util/runtime" - provisioningv1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1" + autoscalingv1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1" ) var Scheme = runtime.NewScheme() var Codecs = serializer.NewCodecFactory(Scheme) var ParameterCodec = runtime.NewParameterCodec(Scheme) var localSchemeBuilder = runtime.SchemeBuilder{ - provisioningv1beta1.AddToScheme, + autoscalingv1beta1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/provisioning.k8s.io_client.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/autoscaling.x-k8s.io_client.go similarity index 66% rename from cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/provisioning.k8s.io_client.go rename to cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/autoscaling.x-k8s.io_client.go index 34b53bc62256..a2ad84f3a260 100644 --- a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/provisioning.k8s.io_client.go +++ b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/autoscaling.x-k8s.io_client.go @@ -21,29 +21,29 @@ package v1beta1 import ( "net/http" - v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1" + v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1" "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) -type ProvisioningV1beta1Interface interface { +type AutoscalingV1beta1Interface interface { RESTClient() rest.Interface ProvisioningRequestsGetter } -// ProvisioningV1beta1Client is used to interact with features provided by the provisioning.k8s.io group. -type ProvisioningV1beta1Client struct { +// AutoscalingV1beta1Client is used to interact with features provided by the autoscaling.x-k8s.io group. +type AutoscalingV1beta1Client struct { restClient rest.Interface } -func (c *ProvisioningV1beta1Client) ProvisioningRequests(namespace string) ProvisioningRequestInterface { +func (c *AutoscalingV1beta1Client) ProvisioningRequests(namespace string) ProvisioningRequestInterface { return newProvisioningRequests(c, namespace) } -// NewForConfig creates a new ProvisioningV1beta1Client for the given config. +// NewForConfig creates a new AutoscalingV1beta1Client for the given config. // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), // where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*ProvisioningV1beta1Client, error) { +func NewForConfig(c *rest.Config) (*AutoscalingV1beta1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -55,9 +55,9 @@ func NewForConfig(c *rest.Config) (*ProvisioningV1beta1Client, error) { return NewForConfigAndClient(&config, httpClient) } -// NewForConfigAndClient creates a new ProvisioningV1beta1Client for the given config and http client. +// NewForConfigAndClient creates a new AutoscalingV1beta1Client for the given config and http client. // Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ProvisioningV1beta1Client, error) { +func NewForConfigAndClient(c *rest.Config, h *http.Client) (*AutoscalingV1beta1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -66,12 +66,12 @@ func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ProvisioningV1beta1 if err != nil { return nil, err } - return &ProvisioningV1beta1Client{client}, nil + return &AutoscalingV1beta1Client{client}, nil } -// NewForConfigOrDie creates a new ProvisioningV1beta1Client for the given config and +// NewForConfigOrDie creates a new AutoscalingV1beta1Client for the given config and // panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *ProvisioningV1beta1Client { +func NewForConfigOrDie(c *rest.Config) *AutoscalingV1beta1Client { client, err := NewForConfig(c) if err != nil { panic(err) @@ -79,9 +79,9 @@ func NewForConfigOrDie(c *rest.Config) *ProvisioningV1beta1Client { return client } -// New creates a new ProvisioningV1beta1Client for the given RESTClient. -func New(c rest.Interface) *ProvisioningV1beta1Client { - return &ProvisioningV1beta1Client{c} +// New creates a new AutoscalingV1beta1Client for the given RESTClient. +func New(c rest.Interface) *AutoscalingV1beta1Client { + return &AutoscalingV1beta1Client{c} } func setConfigDefaults(config *rest.Config) error { @@ -99,7 +99,7 @@ func setConfigDefaults(config *rest.Config) error { // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *ProvisioningV1beta1Client) RESTClient() rest.Interface { +func (c *AutoscalingV1beta1Client) RESTClient() rest.Interface { if c == nil { return nil } diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/doc.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/doc.go similarity index 100% rename from cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/doc.go rename to cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/doc.go diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/fake/doc.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/fake/doc.go similarity index 100% rename from cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/fake/doc.go rename to cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/fake/doc.go diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/fake/fake_provisioning.k8s.io_client.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/fake/fake_autoscaling.x-k8s.io_client.go similarity index 77% rename from cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/fake/fake_provisioning.k8s.io_client.go rename to cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/fake/fake_autoscaling.x-k8s.io_client.go index 70c512620738..7edb82b655fb 100644 --- a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/fake/fake_provisioning.k8s.io_client.go +++ b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/fake/fake_autoscaling.x-k8s.io_client.go @@ -19,22 +19,22 @@ limitations under the License. package fake import ( - v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1" + v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) -type FakeProvisioningV1beta1 struct { +type FakeAutoscalingV1beta1 struct { *testing.Fake } -func (c *FakeProvisioningV1beta1) ProvisioningRequests(namespace string) v1beta1.ProvisioningRequestInterface { +func (c *FakeAutoscalingV1beta1) ProvisioningRequests(namespace string) v1beta1.ProvisioningRequestInterface { return &FakeProvisioningRequests{c, namespace} } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *FakeProvisioningV1beta1) RESTClient() rest.Interface { +func (c *FakeAutoscalingV1beta1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret } diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/fake/fake_provisioningrequest.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/fake/fake_provisioningrequest.go similarity index 95% rename from cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/fake/fake_provisioningrequest.go rename to cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/fake/fake_provisioningrequest.go index d04de1cd016d..d9d2f0b8d573 100644 --- a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/fake/fake_provisioningrequest.go +++ b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/fake/fake_provisioningrequest.go @@ -27,14 +27,14 @@ import ( labels "k8s.io/apimachinery/pkg/labels" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1" - provisioningk8siov1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1" + v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1" + autoscalingxk8siov1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1" testing "k8s.io/client-go/testing" ) // FakeProvisioningRequests implements ProvisioningRequestInterface type FakeProvisioningRequests struct { - Fake *FakeProvisioningV1beta1 + Fake *FakeAutoscalingV1beta1 ns string } @@ -144,7 +144,7 @@ func (c *FakeProvisioningRequests) Patch(ctx context.Context, name string, pt ty } // Apply takes the given apply declarative configuration, applies it and returns the applied provisioningRequest. -func (c *FakeProvisioningRequests) Apply(ctx context.Context, provisioningRequest *provisioningk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) { +func (c *FakeProvisioningRequests) Apply(ctx context.Context, provisioningRequest *autoscalingxk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) { if provisioningRequest == nil { return nil, fmt.Errorf("provisioningRequest provided to Apply must not be nil") } @@ -167,7 +167,7 @@ func (c *FakeProvisioningRequests) Apply(ctx context.Context, provisioningReques // ApplyStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakeProvisioningRequests) ApplyStatus(ctx context.Context, provisioningRequest *provisioningk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) { +func (c *FakeProvisioningRequests) ApplyStatus(ctx context.Context, provisioningRequest *autoscalingxk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) { if provisioningRequest == nil { return nil, fmt.Errorf("provisioningRequest provided to Apply must not be nil") } diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/generated_expansion.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/generated_expansion.go similarity index 100% rename from cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/generated_expansion.go rename to cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/generated_expansion.go diff --git a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/provisioningrequest.go b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go similarity index 94% rename from cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/provisioningrequest.go rename to cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go index 1f76d6b4a7c9..75d49f3501e0 100644 --- a/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/provisioning.k8s.io/v1beta1/provisioningrequest.go +++ b/cluster-autoscaler/provisioningrequests/client/clientset/versioned/typed/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go @@ -27,8 +27,8 @@ import ( v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1" - provisioningk8siov1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/applyconfiguration/provisioning.k8s.io/v1beta1" + v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1" + autoscalingxk8siov1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/applyconfiguration/autoscaling.x-k8s.io/v1beta1" scheme "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) @@ -50,8 +50,8 @@ type ProvisioningRequestInterface interface { List(ctx context.Context, opts v1.ListOptions) (*v1beta1.ProvisioningRequestList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ProvisioningRequest, err error) - Apply(ctx context.Context, provisioningRequest *provisioningk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) - ApplyStatus(ctx context.Context, provisioningRequest *provisioningk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) + Apply(ctx context.Context, provisioningRequest *autoscalingxk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) + ApplyStatus(ctx context.Context, provisioningRequest *autoscalingxk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) ProvisioningRequestExpansion } @@ -62,7 +62,7 @@ type provisioningRequests struct { } // newProvisioningRequests returns a ProvisioningRequests -func newProvisioningRequests(c *ProvisioningV1beta1Client, namespace string) *provisioningRequests { +func newProvisioningRequests(c *AutoscalingV1beta1Client, namespace string) *provisioningRequests { return &provisioningRequests{ client: c.RESTClient(), ns: namespace, @@ -200,7 +200,7 @@ func (c *provisioningRequests) Patch(ctx context.Context, name string, pt types. } // Apply takes the given apply declarative configuration, applies it and returns the applied provisioningRequest. -func (c *provisioningRequests) Apply(ctx context.Context, provisioningRequest *provisioningk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) { +func (c *provisioningRequests) Apply(ctx context.Context, provisioningRequest *autoscalingxk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) { if provisioningRequest == nil { return nil, fmt.Errorf("provisioningRequest provided to Apply must not be nil") } @@ -227,7 +227,7 @@ func (c *provisioningRequests) Apply(ctx context.Context, provisioningRequest *p // ApplyStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *provisioningRequests) ApplyStatus(ctx context.Context, provisioningRequest *provisioningk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) { +func (c *provisioningRequests) ApplyStatus(ctx context.Context, provisioningRequest *autoscalingxk8siov1beta1.ProvisioningRequestApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProvisioningRequest, err error) { if provisioningRequest == nil { return nil, fmt.Errorf("provisioningRequest provided to Apply must not be nil") } diff --git a/cluster-autoscaler/provisioningrequests/client/informers/externalversions/provisioning.k8s.io/interface.go b/cluster-autoscaler/provisioningrequests/client/informers/externalversions/autoscaling.x-k8s.io/interface.go similarity index 94% rename from cluster-autoscaler/provisioningrequests/client/informers/externalversions/provisioning.k8s.io/interface.go rename to cluster-autoscaler/provisioningrequests/client/informers/externalversions/autoscaling.x-k8s.io/interface.go index b74bdb489aad..3aa0dc88f35c 100644 --- a/cluster-autoscaler/provisioningrequests/client/informers/externalversions/provisioning.k8s.io/interface.go +++ b/cluster-autoscaler/provisioningrequests/client/informers/externalversions/autoscaling.x-k8s.io/interface.go @@ -16,11 +16,11 @@ limitations under the License. // Code generated by informer-gen. DO NOT EDIT. -package provisioning +package autoscaling import ( + v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/informers/externalversions/autoscaling.x-k8s.io/v1beta1" internalinterfaces "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/informers/externalversions/internalinterfaces" - v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/informers/externalversions/provisioning.k8s.io/v1beta1" ) // Interface provides access to each of this group's versions. diff --git a/cluster-autoscaler/provisioningrequests/client/informers/externalversions/provisioning.k8s.io/v1beta1/interface.go b/cluster-autoscaler/provisioningrequests/client/informers/externalversions/autoscaling.x-k8s.io/v1beta1/interface.go similarity index 100% rename from cluster-autoscaler/provisioningrequests/client/informers/externalversions/provisioning.k8s.io/v1beta1/interface.go rename to cluster-autoscaler/provisioningrequests/client/informers/externalversions/autoscaling.x-k8s.io/v1beta1/interface.go diff --git a/cluster-autoscaler/provisioningrequests/client/informers/externalversions/provisioning.k8s.io/v1beta1/provisioningrequest.go b/cluster-autoscaler/provisioningrequests/client/informers/externalversions/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go similarity index 87% rename from cluster-autoscaler/provisioningrequests/client/informers/externalversions/provisioning.k8s.io/v1beta1/provisioningrequest.go rename to cluster-autoscaler/provisioningrequests/client/informers/externalversions/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go index c17251fdd3cc..68d0bc47e877 100644 --- a/cluster-autoscaler/provisioningrequests/client/informers/externalversions/provisioning.k8s.io/v1beta1/provisioningrequest.go +++ b/cluster-autoscaler/provisioningrequests/client/informers/externalversions/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go @@ -25,10 +25,10 @@ import ( v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" - provisioningk8siov1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1" + autoscalingxk8siov1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1" versioned "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned" internalinterfaces "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/informers/externalversions/internalinterfaces" - v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/listers/provisioning.k8s.io/v1beta1" + v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/listers/autoscaling.x-k8s.io/v1beta1" cache "k8s.io/client-go/tools/cache" ) @@ -62,16 +62,16 @@ func NewFilteredProvisioningRequestInformer(client versioned.Interface, namespac if tweakListOptions != nil { tweakListOptions(&options) } - return client.ProvisioningV1beta1().ProvisioningRequests(namespace).List(context.TODO(), options) + return client.AutoscalingV1beta1().ProvisioningRequests(namespace).List(context.TODO(), options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ProvisioningV1beta1().ProvisioningRequests(namespace).Watch(context.TODO(), options) + return client.AutoscalingV1beta1().ProvisioningRequests(namespace).Watch(context.TODO(), options) }, }, - &provisioningk8siov1beta1.ProvisioningRequest{}, + &autoscalingxk8siov1beta1.ProvisioningRequest{}, resyncPeriod, indexers, ) @@ -82,7 +82,7 @@ func (f *provisioningRequestInformer) defaultInformer(client versioned.Interface } func (f *provisioningRequestInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&provisioningk8siov1beta1.ProvisioningRequest{}, f.defaultInformer) + return f.factory.InformerFor(&autoscalingxk8siov1beta1.ProvisioningRequest{}, f.defaultInformer) } func (f *provisioningRequestInformer) Lister() v1beta1.ProvisioningRequestLister { diff --git a/cluster-autoscaler/provisioningrequests/client/informers/externalversions/factory.go b/cluster-autoscaler/provisioningrequests/client/informers/externalversions/factory.go index ba94a3127d1b..655f84990f4d 100644 --- a/cluster-autoscaler/provisioningrequests/client/informers/externalversions/factory.go +++ b/cluster-autoscaler/provisioningrequests/client/informers/externalversions/factory.go @@ -27,8 +27,8 @@ import ( runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" versioned "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/clientset/versioned" + autoscalingxk8sio "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/informers/externalversions/autoscaling.x-k8s.io" internalinterfaces "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/informers/externalversions/internalinterfaces" - provisioningk8sio "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client/informers/externalversions/provisioning.k8s.io" cache "k8s.io/client-go/tools/cache" ) @@ -243,9 +243,9 @@ type SharedInformerFactory interface { // client. InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer - Provisioning() provisioningk8sio.Interface + Autoscaling() autoscalingxk8sio.Interface } -func (f *sharedInformerFactory) Provisioning() provisioningk8sio.Interface { - return provisioningk8sio.New(f, f.namespace, f.tweakListOptions) +func (f *sharedInformerFactory) Autoscaling() autoscalingxk8sio.Interface { + return autoscalingxk8sio.New(f, f.namespace, f.tweakListOptions) } diff --git a/cluster-autoscaler/provisioningrequests/client/informers/externalversions/generic.go b/cluster-autoscaler/provisioningrequests/client/informers/externalversions/generic.go index 829be90bff11..3e74dfcfdf75 100644 --- a/cluster-autoscaler/provisioningrequests/client/informers/externalversions/generic.go +++ b/cluster-autoscaler/provisioningrequests/client/informers/externalversions/generic.go @@ -22,7 +22,7 @@ import ( "fmt" schema "k8s.io/apimachinery/pkg/runtime/schema" - v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1" + v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1" cache "k8s.io/client-go/tools/cache" ) @@ -52,9 +52,9 @@ func (f *genericInformer) Lister() cache.GenericLister { // TODO extend this to unknown resources with a client pool func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) { switch resource { - // Group=provisioning.k8s.io, Version=v1beta1 + // Group=autoscaling.x-k8s.io, Version=v1beta1 case v1beta1.SchemeGroupVersion.WithResource("provisioningrequests"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Provisioning().V1beta1().ProvisioningRequests().Informer()}, nil + return &genericInformer{resource: resource.GroupResource(), informer: f.Autoscaling().V1beta1().ProvisioningRequests().Informer()}, nil } diff --git a/cluster-autoscaler/provisioningrequests/client/listers/provisioning.k8s.io/v1beta1/expansion_generated.go b/cluster-autoscaler/provisioningrequests/client/listers/autoscaling.x-k8s.io/v1beta1/expansion_generated.go similarity index 100% rename from cluster-autoscaler/provisioningrequests/client/listers/provisioning.k8s.io/v1beta1/expansion_generated.go rename to cluster-autoscaler/provisioningrequests/client/listers/autoscaling.x-k8s.io/v1beta1/expansion_generated.go diff --git a/cluster-autoscaler/provisioningrequests/client/listers/provisioning.k8s.io/v1beta1/provisioningrequest.go b/cluster-autoscaler/provisioningrequests/client/listers/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go similarity index 99% rename from cluster-autoscaler/provisioningrequests/client/listers/provisioning.k8s.io/v1beta1/provisioningrequest.go rename to cluster-autoscaler/provisioningrequests/client/listers/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go index a1a067e0930c..2ef882d33d0d 100644 --- a/cluster-autoscaler/provisioningrequests/client/listers/provisioning.k8s.io/v1beta1/provisioningrequest.go +++ b/cluster-autoscaler/provisioningrequests/client/listers/autoscaling.x-k8s.io/v1beta1/provisioningrequest.go @@ -21,7 +21,7 @@ package v1beta1 import ( "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" - v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/provisioning.k8s.io/v1beta1" + v1beta1 "k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis/autoscaling.x-k8s.io/v1beta1" "k8s.io/client-go/tools/cache" )