Documentation ¶
Overview ¶
+kcc:proto=google.cloud.redis.cluster.v1
+kubebuilder:object:generate=true +groupName=redis.cnrm.cloud.google.com
Index ¶
- Variables
- type ClusterPersistenceConfig
- type ClusterPersistenceConfig_AOFConfig
- type ClusterPersistenceConfig_RDBConfig
- type Cluster_StateInfo
- type Cluster_StateInfo_UpdateInfo
- type DiscoveryEndpoint
- type PscConfig
- type PscConfigSpec
- type PscConnection
- type RedisCluster
- type RedisClusterList
- type RedisClusterObservedState
- type RedisClusterSpec
- type RedisClusterStatus
- type ZoneDistributionConfig
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = 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: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var RedisClusterGVK = GroupVersion.WithKind("RedisCluster")
Functions ¶
This section is empty.
Types ¶
type ClusterPersistenceConfig ¶
type ClusterPersistenceConfig struct { // Optional. The mode of persistence. Mode *string `json:"mode,omitempty"` // Optional. RDB configuration. This field will be ignored if mode is not RDB. RdbConfig *ClusterPersistenceConfig_RDBConfig `json:"rdbConfig,omitempty"` // Optional. AOF configuration. This field will be ignored if mode is not AOF. AofConfig *ClusterPersistenceConfig_AOFConfig `json:"aofConfig,omitempty"` }
+kcc:proto=google.cloud.redis.cluster.v1.ClusterPersistenceConfig
func (*ClusterPersistenceConfig) DeepCopy ¶
func (in *ClusterPersistenceConfig) DeepCopy() *ClusterPersistenceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPersistenceConfig.
func (*ClusterPersistenceConfig) DeepCopyInto ¶
func (in *ClusterPersistenceConfig) DeepCopyInto(out *ClusterPersistenceConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPersistenceConfig_AOFConfig ¶
type ClusterPersistenceConfig_AOFConfig struct { // Optional. fsync configuration. AppendFsync *string `json:"appendFsync,omitempty"` }
+kcc:proto=google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig
func (*ClusterPersistenceConfig_AOFConfig) DeepCopy ¶
func (in *ClusterPersistenceConfig_AOFConfig) DeepCopy() *ClusterPersistenceConfig_AOFConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPersistenceConfig_AOFConfig.
func (*ClusterPersistenceConfig_AOFConfig) DeepCopyInto ¶
func (in *ClusterPersistenceConfig_AOFConfig) DeepCopyInto(out *ClusterPersistenceConfig_AOFConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPersistenceConfig_RDBConfig ¶
type ClusterPersistenceConfig_RDBConfig struct { // Optional. Period between RDB snapshots. 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. RdbSnapshotStartTime *string `json:"rdbSnapshotStartTime,omitempty"` }
+kcc:proto=google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig
func (*ClusterPersistenceConfig_RDBConfig) DeepCopy ¶
func (in *ClusterPersistenceConfig_RDBConfig) DeepCopy() *ClusterPersistenceConfig_RDBConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPersistenceConfig_RDBConfig.
func (*ClusterPersistenceConfig_RDBConfig) DeepCopyInto ¶
func (in *ClusterPersistenceConfig_RDBConfig) DeepCopyInto(out *ClusterPersistenceConfig_RDBConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Cluster_StateInfo ¶
type Cluster_StateInfo struct { // Describes ongoing update on the cluster when cluster state is UPDATING. UpdateInfo *Cluster_StateInfo_UpdateInfo `json:"updateInfo,omitempty"` }
+kcc:proto=google.cloud.redis.cluster.v1.Cluster.StateInfo
func (*Cluster_StateInfo) DeepCopy ¶
func (in *Cluster_StateInfo) DeepCopy() *Cluster_StateInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster_StateInfo.
func (*Cluster_StateInfo) DeepCopyInto ¶
func (in *Cluster_StateInfo) DeepCopyInto(out *Cluster_StateInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Cluster_StateInfo_UpdateInfo ¶
type Cluster_StateInfo_UpdateInfo struct { // Target number of shards for redis cluster TargetShardCount *int32 `json:"targetShardCount,omitempty"` // Target number of replica nodes per shard. TargetReplicaCount *int32 `json:"targetReplicaCount,omitempty"` }
+kcc:proto=google.cloud.redis.cluster.v1.Cluster.StateInfo.UpdateInfo
func (*Cluster_StateInfo_UpdateInfo) DeepCopy ¶
func (in *Cluster_StateInfo_UpdateInfo) DeepCopy() *Cluster_StateInfo_UpdateInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster_StateInfo_UpdateInfo.
func (*Cluster_StateInfo_UpdateInfo) DeepCopyInto ¶
func (in *Cluster_StateInfo_UpdateInfo) DeepCopyInto(out *Cluster_StateInfo_UpdateInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiscoveryEndpoint ¶
type DiscoveryEndpoint 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. Address *string `json:"address,omitempty"` // Output only. The port number of the exposed Redis endpoint. Port *int32 `json:"port,omitempty"` // Output only. Customer configuration for where the endpoint is created and // accessed from. PscConfig *PscConfig `json:"pscConfig,omitempty"` }
+kcc:proto=google.cloud.redis.cluster.v1.DiscoveryEndpoint
func (*DiscoveryEndpoint) DeepCopy ¶
func (in *DiscoveryEndpoint) DeepCopy() *DiscoveryEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscoveryEndpoint.
func (*DiscoveryEndpoint) DeepCopyInto ¶
func (in *DiscoveryEndpoint) DeepCopyInto(out *DiscoveryEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PscConfig ¶
type PscConfig 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}. Network *string `json:"network,omitempty"` }
+kcc:proto=google.cloud.redis.cluster.v1.PscConfig
func (*PscConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PscConfig.
func (*PscConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PscConfigSpec ¶ added in v1.122.0
type PscConfigSpec 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}. // +required NetworkRef *refs.ComputeNetworkRef `json:"networkRef,omitempty"` }
func (*PscConfigSpec) DeepCopy ¶ added in v1.122.0
func (in *PscConfigSpec) DeepCopy() *PscConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PscConfigSpec.
func (*PscConfigSpec) DeepCopyInto ¶ added in v1.122.0
func (in *PscConfigSpec) DeepCopyInto(out *PscConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PscConnection ¶
type PscConnection struct { // Output only. The PSC connection id of the forwarding rule connected to the // service attachment. PscConnectionID *string `json:"pscConnectionID,omitempty"` // Output only. The IP allocated on the consumer network for the PSC // forwarding rule. Address *string `json:"address,omitempty"` // Output only. The URI of the consumer side forwarding rule. // Example: // projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. ForwardingRule *string `json:"forwardingRule,omitempty"` // Output only. The consumer project_id where the forwarding rule is created // from. ProjectID *string `json:"projectID,omitempty"` // The consumer network where the IP address resides, in the form of // projects/{project_id}/global/networks/{network_id}. Network *string `json:"network,omitempty"` }
+kcc:proto=google.cloud.redis.cluster.v1.PscConnection
func (*PscConnection) DeepCopy ¶
func (in *PscConnection) DeepCopy() *PscConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PscConnection.
func (*PscConnection) DeepCopyInto ¶
func (in *PscConnection) DeepCopyInto(out *PscConnection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisCluster ¶
type RedisCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisClusterSpec `json:"spec,omitempty"` Status RedisClusterStatus `json:"status,omitempty"` }
RedisCluster is the Schema for the RedisCluster API +k8s:openapi-gen=true
func (*RedisCluster) DeepCopy ¶
func (in *RedisCluster) DeepCopy() *RedisCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisCluster.
func (*RedisCluster) DeepCopyInto ¶
func (in *RedisCluster) DeepCopyInto(out *RedisCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisCluster) DeepCopyObject ¶
func (in *RedisCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisClusterList ¶
type RedisClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RedisCluster `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object RedisClusterList contains a list of RedisCluster
func (*RedisClusterList) DeepCopy ¶
func (in *RedisClusterList) DeepCopy() *RedisClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterList.
func (*RedisClusterList) DeepCopyInto ¶
func (in *RedisClusterList) DeepCopyInto(out *RedisClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisClusterList) DeepCopyObject ¶
func (in *RedisClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisClusterObservedState ¶
type RedisClusterObservedState struct { // Output only. The timestamp associated with the cluster creation request. CreateTime *string `json:"createTime,omitempty"` // Output only. The current state of this cluster. // Can be CREATING, READY, UPDATING, DELETING and SUSPENDED State *string `json:"state,omitempty"` // Output only. System assigned, unique identifier for the cluster. Uid *string `json:"uid,omitempty"` // Output only. Redis memory size in GB for the entire cluster rounded up to // the next integer. SizeGb *int32 `json:"sizeGb,omitempty"` // Output only. Endpoints created on each given network, for Redis clients to // connect to the cluster. Currently only one discovery endpoint is supported. DiscoveryEndpoints []DiscoveryEndpoint `json:"discoveryEndpoints,omitempty"` // Output only. PSC connections for discovery of the cluster topology and // accessing the cluster. PscConnections []PscConnection `json:"pscConnections,omitempty"` // Output only. Additional information about the current state of the cluster. StateInfo *Cluster_StateInfo `json:"stateInfo,omitempty"` // Output only. Precise value of redis memory size in GB for the entire // cluster. PreciseSizeGb *float64 `json:"preciseSizeGb,omitempty"` }
RedisClusterSpec defines the desired state of RedisCluster +kcc:proto=google.cloud.redis.cluster.v1.Cluster
func (*RedisClusterObservedState) DeepCopy ¶
func (in *RedisClusterObservedState) DeepCopy() *RedisClusterObservedState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterObservedState.
func (*RedisClusterObservedState) DeepCopyInto ¶
func (in *RedisClusterObservedState) DeepCopyInto(out *RedisClusterObservedState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisClusterSpec ¶
type RedisClusterSpec struct { /* Immutable. The Project that this resource belongs to. */ ProjectRef refs.ProjectRef `json:"projectRef"` /* Immutable. Location of the resource. */ Location *string `json:"location"` // The RedisCluster name. If not given, the metadata.name will be used. ResourceID *string `json:"resourceID,omitempty"` // Optional. The authorization mode of the Redis cluster. // If not provided, auth feature is disabled for the cluster. AuthorizationMode *string `json:"authorizationMode,omitempty"` // Optional. The in-transit encryption for the Redis cluster. // If not provided, encryption is disabled for the cluster. TransitEncryptionMode *string `json:"transitEncryptionMode,omitempty"` // Required. Number of shards for the Redis cluster. ShardCount *int32 `json:"shardCount,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. PscConfigs []PscConfigSpec `json:"pscConfigs,omitempty"` // Optional. The type of a redis node in the cluster. NodeType determines the // underlying machine-type of a redis node. NodeType *string `json:"nodeType,omitempty"` // Optional. Persistence config (RDB, AOF) for the cluster. PersistenceConfig *ClusterPersistenceConfig `json:"persistenceConfig,omitempty"` // Optional. Key/Value pairs of customer overrides for mutable Redis Configs RedisConfigs map[string]string `json:"redisConfigs,omitempty"` // Optional. The number of replica nodes per shard. ReplicaCount *int32 `json:"replicaCount,omitempty"` // Optional. This config will be used to determine how the customer wants us // to distribute cluster resources within the region. ZoneDistributionConfig *ZoneDistributionConfig `json:"zoneDistributionConfig,omitempty"` // Optional. The delete operation will fail when the value is set to true. DeletionProtectionEnabled *bool `json:"deletionProtectionEnabled,omitempty"` }
RedisClusterSpec defines the desired state of RedisCluster +kcc:proto=google.cloud.redis.cluster.v1.Cluster
func (*RedisClusterSpec) DeepCopy ¶
func (in *RedisClusterSpec) DeepCopy() *RedisClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterSpec.
func (*RedisClusterSpec) DeepCopyInto ¶
func (in *RedisClusterSpec) DeepCopyInto(out *RedisClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisClusterStatus ¶
type RedisClusterStatus struct { /* Conditions represent the latest available observations of the object's current state. */ Conditions []v1alpha1.Condition `json:"conditions,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"` // A unique specifier for the RedisCluster resource in GCP. // +optional ExternalRef *string `json:"externalRef,omitempty"` // ObservedState is the state of the resource as most recently observed in GCP. // +optional ObservedState *RedisClusterObservedState `json:"observedState,omitempty"` }
RedisClusterStatus defines the config connector machine state of RedisCluster
func (*RedisClusterStatus) DeepCopy ¶
func (in *RedisClusterStatus) DeepCopy() *RedisClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterStatus.
func (*RedisClusterStatus) DeepCopyInto ¶
func (in *RedisClusterStatus) DeepCopyInto(out *RedisClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZoneDistributionConfig ¶
type ZoneDistributionConfig struct { // Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not // specified. 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. Zone *string `json:"zone,omitempty"` }
+kcc:proto=google.cloud.redis.cluster.v1.ZoneDistributionConfig
func (*ZoneDistributionConfig) DeepCopy ¶
func (in *ZoneDistributionConfig) DeepCopy() *ZoneDistributionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneDistributionConfig.
func (*ZoneDistributionConfig) DeepCopyInto ¶
func (in *ZoneDistributionConfig) DeepCopyInto(out *ZoneDistributionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.