From b7840af52a32e8d66ea9448c8f261c037b75df11 Mon Sep 17 00:00:00 2001 From: Jason Vigil Date: Tue, 23 Jul 2024 19:57:06 +0000 Subject: [PATCH] fix: generate clients --- .../generated/apis/redis/v1alpha1/doc.go | 41 -- .../apis/redis/v1alpha1/rediscluster_types.go | 270 --------- .../generated/apis/redis/v1alpha1/register.go | 63 --- .../redis/v1alpha1/zz_generated.deepcopy.go | 527 ------------------ .../client/clientset/versioned/clientset.go | 13 - .../versioned/fake/clientset_generated.go | 7 - .../clientset/versioned/fake/register.go | 2 - .../clientset/versioned/scheme/register.go | 2 - 8 files changed, 925 deletions(-) delete mode 100644 pkg/clients/generated/apis/redis/v1alpha1/doc.go delete mode 100644 pkg/clients/generated/apis/redis/v1alpha1/rediscluster_types.go delete mode 100644 pkg/clients/generated/apis/redis/v1alpha1/register.go delete mode 100644 pkg/clients/generated/apis/redis/v1alpha1/zz_generated.deepcopy.go diff --git a/pkg/clients/generated/apis/redis/v1alpha1/doc.go b/pkg/clients/generated/apis/redis/v1alpha1/doc.go deleted file mode 100644 index a6803c42847..00000000000 --- a/pkg/clients/generated/apis/redis/v1alpha1/doc.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// ---------------------------------------------------------------------------- -// -// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** -// -// ---------------------------------------------------------------------------- -// -// This file is automatically generated by Config Connector and manual -// changes will be clobbered when the file is regenerated. -// -// ---------------------------------------------------------------------------- - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Package v1alpha1 contains API Schema definitions for the redis v1alpha1 API group. -// +k8s:openapi-gen=true -// +k8s:deepcopy-gen=package,register -// +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/redis -// +k8s:defaulter-gen=TypeMeta -// +groupName=redis.cnrm.cloud.google.com - -// Generate deepcopy object for redis/v1alpha1 API group -// -//go:generate go run ../../../../../../scripts/deepcopy-gen/main.go -O zz_generated.deepcopy -i . -h ../../../../../../hack/boilerplate_client_alpha.go.txt -package v1alpha1 diff --git a/pkg/clients/generated/apis/redis/v1alpha1/rediscluster_types.go b/pkg/clients/generated/apis/redis/v1alpha1/rediscluster_types.go deleted file mode 100644 index 61805e4db3b..00000000000 --- a/pkg/clients/generated/apis/redis/v1alpha1/rediscluster_types.go +++ /dev/null @@ -1,270 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// ---------------------------------------------------------------------------- -// -// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** -// -// ---------------------------------------------------------------------------- -// -// This file is automatically generated by Config Connector and manual -// changes will be clobbered when the file is regenerated. -// -// ---------------------------------------------------------------------------- - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -package v1alpha1 - -import ( - "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -type ClusterAofConfig struct { - /* Optional. fsync configuration. */ - // +optional - AppendFsync *string `json:"appendFsync,omitempty"` -} - -type ClusterPersistenceConfig struct { - /* Optional. AOF configuration. This field will be ignored if mode is not AOF. */ - // +optional - AofConfig *ClusterAofConfig `json:"aofConfig,omitempty"` - - /* Optional. The mode of persistence. */ - // +optional - Mode *string `json:"mode,omitempty"` - - /* Optional. RDB configuration. This field will be ignored if mode is not RDB. */ - // +optional - RdbConfig *ClusterRdbConfig `json:"rdbConfig,omitempty"` -} - -type ClusterPscConfigs struct { - /* Required. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}. */ - // +optional - NetworkRef *v1alpha1.ResourceRef `json:"networkRef,omitempty"` -} - -type ClusterRdbConfig struct { - /* Optional. Period between RDB snapshots. */ - // +optional - RdbSnapshotPeriod *string `json:"rdbSnapshotPeriod,omitempty"` - - /* Optional. The time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used. */ - // +optional - RdbSnapshotStartTime *string `json:"rdbSnapshotStartTime,omitempty"` -} - -type ClusterZoneDistributionConfig struct { - /* Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified. */ - // +optional - Mode *string `json:"mode,omitempty"` - - /* Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters. */ - // +optional - Zone *string `json:"zone,omitempty"` -} - -type RedisClusterSpec struct { - /* Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. */ - // +optional - AuthorizationMode *string `json:"authorizationMode,omitempty"` - - /* Optional. The delete operation will fail when the value is set to true. */ - // +optional - DeletionProtectionEnabled *bool `json:"deletionProtectionEnabled,omitempty"` - - /* Optional. The type of a redis node in the cluster. NodeType determines the underlying machine-type of a redis node. */ - // +optional - NodeType *string `json:"nodeType,omitempty"` - - /* Optional. Persistence config (RDB, AOF) for the cluster. */ - // +optional - PersistenceConfig *ClusterPersistenceConfig `json:"persistenceConfig,omitempty"` - - /* Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported. */ - // +optional - PscConfigs []ClusterPscConfigs `json:"pscConfigs,omitempty"` - - /* Optional. Key/Value pairs of customer overrides for mutable Redis Configs */ - // +optional - RedisConfigs map[string]string `json:"redisConfigs,omitempty"` - - /* Optional. The number of replica nodes per shard. */ - // +optional - ReplicaCount *int32 `json:"replicaCount,omitempty"` - - /* The RedisCluster name. If not given, the metadata.name will be used. */ - // +optional - ResourceID *string `json:"resourceID,omitempty"` - - /* Required. Number of shards for the Redis cluster. */ - // +optional - ShardCount *int32 `json:"shardCount,omitempty"` - - /* Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. */ - // +optional - TransitEncryptionMode *string `json:"transitEncryptionMode,omitempty"` - - /* Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region. */ - // +optional - ZoneDistributionConfig *ClusterZoneDistributionConfig `json:"zoneDistributionConfig,omitempty"` -} - -type ClusterDiscoveryEndpointsStatus struct { - /* Output only. Address of the exposed Redis endpoint used by clients to connect to the service. The address could be either IP or hostname. */ - // +optional - Address *string `json:"address,omitempty"` - - /* Output only. The port number of the exposed Redis endpoint. */ - // +optional - Port *int32 `json:"port,omitempty"` - - /* Output only. Customer configuration for where the endpoint is created and accessed from. */ - // +optional - PscConfig *ClusterPscConfigStatus `json:"pscConfig,omitempty"` -} - -type ClusterObservedStateStatus struct { - /* Output only. The timestamp associated with the cluster creation request. */ - // +optional - CreateTime *string `json:"createTime,omitempty"` - - /* Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported. */ - // +optional - DiscoveryEndpoints []ClusterDiscoveryEndpointsStatus `json:"discoveryEndpoints,omitempty"` - - /* Output only. Precise value of redis memory size in GB for the entire cluster. */ - // +optional - PreciseSizeGb *float64 `json:"preciseSizeGb,omitempty"` - - /* Output only. PSC connections for discovery of the cluster topology and accessing the cluster. */ - // +optional - PscConnections []ClusterPscConnectionsStatus `json:"pscConnections,omitempty"` - - /* Output only. Redis memory size in GB for the entire cluster rounded up to the next integer. */ - // +optional - SizeGb *int32 `json:"sizeGb,omitempty"` - - /* Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED */ - // +optional - State *string `json:"state,omitempty"` - - /* Output only. Additional information about the current state of the cluster. */ - // +optional - StateInfo *ClusterStateInfoStatus `json:"stateInfo,omitempty"` - - /* Output only. System assigned, unique identifier for the cluster. */ - // +optional - Uid *string `json:"uid,omitempty"` -} - -type ClusterPscConfigStatus struct { - /* Required. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}. */ - // +optional - NetworkRef *v1alpha1.ResourceRef `json:"networkRef,omitempty"` -} - -type ClusterPscConnectionsStatus struct { - /* Output only. The IP allocated on the consumer network for the PSC forwarding rule. */ - // +optional - Address *string `json:"address,omitempty"` - - /* Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. */ - // +optional - ForwardingRule *string `json:"forwardingRule,omitempty"` - - /* The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}. */ - // +optional - Network *string `json:"network,omitempty"` - - /* Output only. The consumer project_id where the forwarding rule is created from. */ - // +optional - ProjectID *string `json:"projectID,omitempty"` - - /* Output only. The PSC connection id of the forwarding rule connected to the service attachment. */ - // +optional - PscConnectionID *string `json:"pscConnectionID,omitempty"` -} - -type ClusterStateInfoStatus struct { - /* Describes ongoing update on the cluster when cluster state is UPDATING. */ - // +optional - UpdateInfo *ClusterUpdateInfoStatus `json:"updateInfo,omitempty"` -} - -type ClusterUpdateInfoStatus struct { - /* Target number of replica nodes per shard. */ - // +optional - TargetReplicaCount *int32 `json:"targetReplicaCount,omitempty"` - - /* Target number of shards for redis cluster */ - // +optional - TargetShardCount *int32 `json:"targetShardCount,omitempty"` -} - -type RedisClusterStatus struct { - /* Conditions represent the latest available observations of the - RedisCluster's current state. */ - Conditions []v1alpha1.Condition `json:"conditions,omitempty"` - /* A unique specifier for the RedisCluster resource in GCP. */ - // +optional - ExternalRef *string `json:"externalRef,omitempty"` - - /* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */ - // +optional - ObservedGeneration *int64 `json:"observedGeneration,omitempty"` - - /* ObservedState is the state of the resource as most recently observed in GCP. */ - // +optional - ObservedState *ClusterObservedStateStatus `json:"observedState,omitempty"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:resource:categories=gcp,shortName= -// +kubebuilder:subresource:status -// +kubebuilder:metadata:labels="cnrm.cloud.google.com/managed-by-kcc=true";"cnrm.cloud.google.com/system=true" -// +kubebuilder:printcolumn:name="Age",JSONPath=".metadata.creationTimestamp",type="date" -// +kubebuilder:printcolumn:name="Ready",JSONPath=".status.conditions[?(@.type=='Ready')].status",type="string",description="When 'True', the most recent reconcile of the resource succeeded" -// +kubebuilder:printcolumn:name="Status",JSONPath=".status.conditions[?(@.type=='Ready')].reason",type="string",description="The reason for the value in 'Ready'" -// +kubebuilder:printcolumn:name="Status Age",JSONPath=".status.conditions[?(@.type=='Ready')].lastTransitionTime",type="date",description="The last transition time for the value in 'Status'" - -// RedisCluster is the Schema for the redis API -// +k8s:openapi-gen=true -type RedisCluster struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec RedisClusterSpec `json:"spec,omitempty"` - Status RedisClusterStatus `json:"status,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// RedisClusterList contains a list of RedisCluster -type RedisClusterList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RedisCluster `json:"items"` -} - -func init() { - SchemeBuilder.Register(&RedisCluster{}, &RedisClusterList{}) -} diff --git a/pkg/clients/generated/apis/redis/v1alpha1/register.go b/pkg/clients/generated/apis/redis/v1alpha1/register.go deleted file mode 100644 index c9333d9ff4f..00000000000 --- a/pkg/clients/generated/apis/redis/v1alpha1/register.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// ---------------------------------------------------------------------------- -// -// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** -// -// ---------------------------------------------------------------------------- -// -// This file is automatically generated by Config Connector and manual -// changes will be clobbered when the file is regenerated. -// -// ---------------------------------------------------------------------------- - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Package v1alpha1 contains API Schema definitions for the redis v1alpha1 API group. -// +k8s:openapi-gen=true -// +k8s:deepcopy-gen=package,register -// +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/redis -// +k8s:defaulter-gen=TypeMeta -// +groupName=redis.cnrm.cloud.google.com -package v1alpha1 - -import ( - "reflect" - - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" -) - -var ( - // SchemeGroupVersion is the group version used to register these objects. - SchemeGroupVersion = schema.GroupVersion{Group: "redis.cnrm.cloud.google.com", Version: "v1alpha1"} - - // SchemeBuilder is used to add go types to the GroupVersionKind scheme. - SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} - - // AddToScheme is a global function that registers this API group & version to a scheme - AddToScheme = SchemeBuilder.AddToScheme - - RedisClusterGVK = schema.GroupVersionKind{ - Group: SchemeGroupVersion.Group, - Version: SchemeGroupVersion.Version, - Kind: reflect.TypeOf(RedisCluster{}).Name(), - } - - redisAPIVersion = SchemeGroupVersion.String() -) diff --git a/pkg/clients/generated/apis/redis/v1alpha1/zz_generated.deepcopy.go b/pkg/clients/generated/apis/redis/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index ea1668fcb2c..00000000000 --- a/pkg/clients/generated/apis/redis/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,527 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Code generated by main. DO NOT EDIT. - -package v1alpha1 - -import ( - k8sv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1" - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterAofConfig) DeepCopyInto(out *ClusterAofConfig) { - *out = *in - if in.AppendFsync != nil { - in, out := &in.AppendFsync, &out.AppendFsync - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAofConfig. -func (in *ClusterAofConfig) DeepCopy() *ClusterAofConfig { - if in == nil { - return nil - } - out := new(ClusterAofConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterDiscoveryEndpointsStatus) DeepCopyInto(out *ClusterDiscoveryEndpointsStatus) { - *out = *in - if in.Address != nil { - in, out := &in.Address, &out.Address - *out = new(string) - **out = **in - } - if in.Port != nil { - in, out := &in.Port, &out.Port - *out = new(int32) - **out = **in - } - if in.PscConfig != nil { - in, out := &in.PscConfig, &out.PscConfig - *out = new(ClusterPscConfigStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDiscoveryEndpointsStatus. -func (in *ClusterDiscoveryEndpointsStatus) DeepCopy() *ClusterDiscoveryEndpointsStatus { - if in == nil { - return nil - } - out := new(ClusterDiscoveryEndpointsStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterObservedStateStatus) DeepCopyInto(out *ClusterObservedStateStatus) { - *out = *in - if in.CreateTime != nil { - in, out := &in.CreateTime, &out.CreateTime - *out = new(string) - **out = **in - } - if in.DiscoveryEndpoints != nil { - in, out := &in.DiscoveryEndpoints, &out.DiscoveryEndpoints - *out = make([]ClusterDiscoveryEndpointsStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PreciseSizeGb != nil { - in, out := &in.PreciseSizeGb, &out.PreciseSizeGb - *out = new(float64) - **out = **in - } - if in.PscConnections != nil { - in, out := &in.PscConnections, &out.PscConnections - *out = make([]ClusterPscConnectionsStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.SizeGb != nil { - in, out := &in.SizeGb, &out.SizeGb - *out = new(int32) - **out = **in - } - if in.State != nil { - in, out := &in.State, &out.State - *out = new(string) - **out = **in - } - if in.StateInfo != nil { - in, out := &in.StateInfo, &out.StateInfo - *out = new(ClusterStateInfoStatus) - (*in).DeepCopyInto(*out) - } - if in.Uid != nil { - in, out := &in.Uid, &out.Uid - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterObservedStateStatus. -func (in *ClusterObservedStateStatus) DeepCopy() *ClusterObservedStateStatus { - if in == nil { - return nil - } - out := new(ClusterObservedStateStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterPersistenceConfig) DeepCopyInto(out *ClusterPersistenceConfig) { - *out = *in - if in.AofConfig != nil { - in, out := &in.AofConfig, &out.AofConfig - *out = new(ClusterAofConfig) - (*in).DeepCopyInto(*out) - } - if in.Mode != nil { - in, out := &in.Mode, &out.Mode - *out = new(string) - **out = **in - } - if in.RdbConfig != nil { - in, out := &in.RdbConfig, &out.RdbConfig - *out = new(ClusterRdbConfig) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPersistenceConfig. -func (in *ClusterPersistenceConfig) DeepCopy() *ClusterPersistenceConfig { - if in == nil { - return nil - } - out := new(ClusterPersistenceConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterPscConfigStatus) DeepCopyInto(out *ClusterPscConfigStatus) { - *out = *in - if in.NetworkRef != nil { - in, out := &in.NetworkRef, &out.NetworkRef - *out = new(k8sv1alpha1.ResourceRef) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPscConfigStatus. -func (in *ClusterPscConfigStatus) DeepCopy() *ClusterPscConfigStatus { - if in == nil { - return nil - } - out := new(ClusterPscConfigStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterPscConfigs) DeepCopyInto(out *ClusterPscConfigs) { - *out = *in - if in.NetworkRef != nil { - in, out := &in.NetworkRef, &out.NetworkRef - *out = new(k8sv1alpha1.ResourceRef) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPscConfigs. -func (in *ClusterPscConfigs) DeepCopy() *ClusterPscConfigs { - if in == nil { - return nil - } - out := new(ClusterPscConfigs) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterPscConnectionsStatus) DeepCopyInto(out *ClusterPscConnectionsStatus) { - *out = *in - if in.Address != nil { - in, out := &in.Address, &out.Address - *out = new(string) - **out = **in - } - if in.ForwardingRule != nil { - in, out := &in.ForwardingRule, &out.ForwardingRule - *out = new(string) - **out = **in - } - if in.Network != nil { - in, out := &in.Network, &out.Network - *out = new(string) - **out = **in - } - if in.ProjectID != nil { - in, out := &in.ProjectID, &out.ProjectID - *out = new(string) - **out = **in - } - if in.PscConnectionID != nil { - in, out := &in.PscConnectionID, &out.PscConnectionID - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPscConnectionsStatus. -func (in *ClusterPscConnectionsStatus) DeepCopy() *ClusterPscConnectionsStatus { - if in == nil { - return nil - } - out := new(ClusterPscConnectionsStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRdbConfig) DeepCopyInto(out *ClusterRdbConfig) { - *out = *in - if in.RdbSnapshotPeriod != nil { - in, out := &in.RdbSnapshotPeriod, &out.RdbSnapshotPeriod - *out = new(string) - **out = **in - } - if in.RdbSnapshotStartTime != nil { - in, out := &in.RdbSnapshotStartTime, &out.RdbSnapshotStartTime - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRdbConfig. -func (in *ClusterRdbConfig) DeepCopy() *ClusterRdbConfig { - if in == nil { - return nil - } - out := new(ClusterRdbConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterStateInfoStatus) DeepCopyInto(out *ClusterStateInfoStatus) { - *out = *in - if in.UpdateInfo != nil { - in, out := &in.UpdateInfo, &out.UpdateInfo - *out = new(ClusterUpdateInfoStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStateInfoStatus. -func (in *ClusterStateInfoStatus) DeepCopy() *ClusterStateInfoStatus { - if in == nil { - return nil - } - out := new(ClusterStateInfoStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterUpdateInfoStatus) DeepCopyInto(out *ClusterUpdateInfoStatus) { - *out = *in - if in.TargetReplicaCount != nil { - in, out := &in.TargetReplicaCount, &out.TargetReplicaCount - *out = new(int32) - **out = **in - } - if in.TargetShardCount != nil { - in, out := &in.TargetShardCount, &out.TargetShardCount - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterUpdateInfoStatus. -func (in *ClusterUpdateInfoStatus) DeepCopy() *ClusterUpdateInfoStatus { - if in == nil { - return nil - } - out := new(ClusterUpdateInfoStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterZoneDistributionConfig) DeepCopyInto(out *ClusterZoneDistributionConfig) { - *out = *in - if in.Mode != nil { - in, out := &in.Mode, &out.Mode - *out = new(string) - **out = **in - } - if in.Zone != nil { - in, out := &in.Zone, &out.Zone - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterZoneDistributionConfig. -func (in *ClusterZoneDistributionConfig) DeepCopy() *ClusterZoneDistributionConfig { - if in == nil { - return nil - } - out := new(ClusterZoneDistributionConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedisCluster) DeepCopyInto(out *RedisCluster) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisCluster. -func (in *RedisCluster) DeepCopy() *RedisCluster { - if in == nil { - return nil - } - out := new(RedisCluster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RedisCluster) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedisClusterList) DeepCopyInto(out *RedisClusterList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RedisCluster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterList. -func (in *RedisClusterList) DeepCopy() *RedisClusterList { - if in == nil { - return nil - } - out := new(RedisClusterList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RedisClusterList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedisClusterSpec) DeepCopyInto(out *RedisClusterSpec) { - *out = *in - if in.AuthorizationMode != nil { - in, out := &in.AuthorizationMode, &out.AuthorizationMode - *out = new(string) - **out = **in - } - if in.DeletionProtectionEnabled != nil { - in, out := &in.DeletionProtectionEnabled, &out.DeletionProtectionEnabled - *out = new(bool) - **out = **in - } - if in.NodeType != nil { - in, out := &in.NodeType, &out.NodeType - *out = new(string) - **out = **in - } - if in.PersistenceConfig != nil { - in, out := &in.PersistenceConfig, &out.PersistenceConfig - *out = new(ClusterPersistenceConfig) - (*in).DeepCopyInto(*out) - } - if in.PscConfigs != nil { - in, out := &in.PscConfigs, &out.PscConfigs - *out = make([]ClusterPscConfigs, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.RedisConfigs != nil { - in, out := &in.RedisConfigs, &out.RedisConfigs - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.ReplicaCount != nil { - in, out := &in.ReplicaCount, &out.ReplicaCount - *out = new(int32) - **out = **in - } - if in.ResourceID != nil { - in, out := &in.ResourceID, &out.ResourceID - *out = new(string) - **out = **in - } - if in.ShardCount != nil { - in, out := &in.ShardCount, &out.ShardCount - *out = new(int32) - **out = **in - } - if in.TransitEncryptionMode != nil { - in, out := &in.TransitEncryptionMode, &out.TransitEncryptionMode - *out = new(string) - **out = **in - } - if in.ZoneDistributionConfig != nil { - in, out := &in.ZoneDistributionConfig, &out.ZoneDistributionConfig - *out = new(ClusterZoneDistributionConfig) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterSpec. -func (in *RedisClusterSpec) DeepCopy() *RedisClusterSpec { - if in == nil { - return nil - } - out := new(RedisClusterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedisClusterStatus) DeepCopyInto(out *RedisClusterStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]k8sv1alpha1.Condition, len(*in)) - copy(*out, *in) - } - if in.ExternalRef != nil { - in, out := &in.ExternalRef, &out.ExternalRef - *out = new(string) - **out = **in - } - if in.ObservedGeneration != nil { - in, out := &in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = **in - } - if in.ObservedState != nil { - in, out := &in.ObservedState, &out.ObservedState - *out = new(ClusterObservedStateStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterStatus. -func (in *RedisClusterStatus) DeepCopy() *RedisClusterStatus { - if in == nil { - return nil - } - out := new(RedisClusterStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pkg/clients/generated/client/clientset/versioned/clientset.go b/pkg/clients/generated/client/clientset/versioned/clientset.go index 9616071e5d5..7292f38cebc 100644 --- a/pkg/clients/generated/client/clientset/versioned/clientset.go +++ b/pkg/clients/generated/client/clientset/versioned/clientset.go @@ -117,7 +117,6 @@ import ( pubsublitev1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/pubsublite/v1alpha1" pubsublitev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/pubsublite/v1beta1" recaptchaenterprisev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/recaptchaenterprise/v1beta1" - redisv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/redis/v1alpha1" redisv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/redis/v1beta1" resourcemanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/resourcemanager/v1beta1" runv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/run/v1beta1" @@ -242,7 +241,6 @@ type Interface interface { PubsubliteV1alpha1() pubsublitev1alpha1.PubsubliteV1alpha1Interface PubsubliteV1beta1() pubsublitev1beta1.PubsubliteV1beta1Interface RecaptchaenterpriseV1beta1() recaptchaenterprisev1beta1.RecaptchaenterpriseV1beta1Interface - RedisV1alpha1() redisv1alpha1.RedisV1alpha1Interface RedisV1beta1() redisv1beta1.RedisV1beta1Interface ResourcemanagerV1beta1() resourcemanagerv1beta1.ResourcemanagerV1beta1Interface RunV1beta1() runv1beta1.RunV1beta1Interface @@ -365,7 +363,6 @@ type Clientset struct { pubsubliteV1alpha1 *pubsublitev1alpha1.PubsubliteV1alpha1Client pubsubliteV1beta1 *pubsublitev1beta1.PubsubliteV1beta1Client recaptchaenterpriseV1beta1 *recaptchaenterprisev1beta1.RecaptchaenterpriseV1beta1Client - redisV1alpha1 *redisv1alpha1.RedisV1alpha1Client redisV1beta1 *redisv1beta1.RedisV1beta1Client resourcemanagerV1beta1 *resourcemanagerv1beta1.ResourcemanagerV1beta1Client runV1beta1 *runv1beta1.RunV1beta1Client @@ -853,11 +850,6 @@ func (c *Clientset) RecaptchaenterpriseV1beta1() recaptchaenterprisev1beta1.Reca return c.recaptchaenterpriseV1beta1 } -// RedisV1alpha1 retrieves the RedisV1alpha1Client -func (c *Clientset) RedisV1alpha1() redisv1alpha1.RedisV1alpha1Interface { - return c.redisV1alpha1 -} - // RedisV1beta1 retrieves the RedisV1beta1Client func (c *Clientset) RedisV1beta1() redisv1beta1.RedisV1beta1Interface { return c.redisV1beta1 @@ -1395,10 +1387,6 @@ func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, if err != nil { return nil, err } - cs.redisV1alpha1, err = redisv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } cs.redisV1beta1, err = redisv1beta1.NewForConfigAndClient(&configShallowCopy, httpClient) if err != nil { return nil, err @@ -1612,7 +1600,6 @@ func New(c rest.Interface) *Clientset { cs.pubsubliteV1alpha1 = pubsublitev1alpha1.New(c) cs.pubsubliteV1beta1 = pubsublitev1beta1.New(c) cs.recaptchaenterpriseV1beta1 = recaptchaenterprisev1beta1.New(c) - cs.redisV1alpha1 = redisv1alpha1.New(c) cs.redisV1beta1 = redisv1beta1.New(c) cs.resourcemanagerV1beta1 = resourcemanagerv1beta1.New(c) cs.runV1beta1 = runv1beta1.New(c) diff --git a/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go b/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go index e4aeb0b43f5..3ec1911f34d 100644 --- a/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go @@ -207,8 +207,6 @@ import ( fakepubsublitev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/pubsublite/v1beta1/fake" recaptchaenterprisev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/recaptchaenterprise/v1beta1" fakerecaptchaenterprisev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/recaptchaenterprise/v1beta1/fake" - redisv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/redis/v1alpha1" - fakeredisv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/redis/v1alpha1/fake" redisv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/redis/v1beta1" fakeredisv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/redis/v1beta1/fake" resourcemanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/resourcemanager/v1beta1" @@ -776,11 +774,6 @@ func (c *Clientset) RecaptchaenterpriseV1beta1() recaptchaenterprisev1beta1.Reca return &fakerecaptchaenterprisev1beta1.FakeRecaptchaenterpriseV1beta1{Fake: &c.Fake} } -// RedisV1alpha1 retrieves the RedisV1alpha1Client -func (c *Clientset) RedisV1alpha1() redisv1alpha1.RedisV1alpha1Interface { - return &fakeredisv1alpha1.FakeRedisV1alpha1{Fake: &c.Fake} -} - // RedisV1beta1 retrieves the RedisV1beta1Client func (c *Clientset) RedisV1beta1() redisv1beta1.RedisV1beta1Interface { return &fakeredisv1beta1.FakeRedisV1beta1{Fake: &c.Fake} diff --git a/pkg/clients/generated/client/clientset/versioned/fake/register.go b/pkg/clients/generated/client/clientset/versioned/fake/register.go index 627ae0171b0..0491668afaa 100644 --- a/pkg/clients/generated/client/clientset/versioned/fake/register.go +++ b/pkg/clients/generated/client/clientset/versioned/fake/register.go @@ -114,7 +114,6 @@ import ( pubsublitev1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/pubsublite/v1alpha1" pubsublitev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/pubsublite/v1beta1" recaptchaenterprisev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/recaptchaenterprise/v1beta1" - redisv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/redis/v1alpha1" redisv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/redis/v1beta1" resourcemanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/resourcemanager/v1beta1" runv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/run/v1beta1" @@ -243,7 +242,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{ pubsublitev1alpha1.AddToScheme, pubsublitev1beta1.AddToScheme, recaptchaenterprisev1beta1.AddToScheme, - redisv1alpha1.AddToScheme, redisv1beta1.AddToScheme, resourcemanagerv1beta1.AddToScheme, runv1beta1.AddToScheme, diff --git a/pkg/clients/generated/client/clientset/versioned/scheme/register.go b/pkg/clients/generated/client/clientset/versioned/scheme/register.go index 3ebd795e3f7..1a7058150cc 100644 --- a/pkg/clients/generated/client/clientset/versioned/scheme/register.go +++ b/pkg/clients/generated/client/clientset/versioned/scheme/register.go @@ -114,7 +114,6 @@ import ( pubsublitev1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/pubsublite/v1alpha1" pubsublitev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/pubsublite/v1beta1" recaptchaenterprisev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/recaptchaenterprise/v1beta1" - redisv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/redis/v1alpha1" redisv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/redis/v1beta1" resourcemanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/resourcemanager/v1beta1" runv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/run/v1beta1" @@ -243,7 +242,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{ pubsublitev1alpha1.AddToScheme, pubsublitev1beta1.AddToScheme, recaptchaenterprisev1beta1.AddToScheme, - redisv1alpha1.AddToScheme, redisv1beta1.AddToScheme, resourcemanagerv1beta1.AddToScheme, runv1beta1.AddToScheme,