v1alpha1

package
v1.123.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
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(),
	}
)

Functions

This section is empty.

Types

type ClusterAofConfig

type ClusterAofConfig struct {
	/* Optional. fsync configuration. */
	// +optional
	AppendFsync *string `json:"appendFsync,omitempty"`
}

func (*ClusterAofConfig) DeepCopy

func (in *ClusterAofConfig) DeepCopy() *ClusterAofConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAofConfig.

func (*ClusterAofConfig) DeepCopyInto

func (in *ClusterAofConfig) DeepCopyInto(out *ClusterAofConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterDiscoveryEndpointsStatus

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"`
}

func (*ClusterDiscoveryEndpointsStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDiscoveryEndpointsStatus.

func (*ClusterDiscoveryEndpointsStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterObservedStateStatus

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"`
}

func (*ClusterObservedStateStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterObservedStateStatus.

func (*ClusterObservedStateStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterPersistenceConfig

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"`
}

func (*ClusterPersistenceConfig) DeepCopy

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 ClusterPscConfigStatus

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
	Network *string `json:"network,omitempty"`
}

func (*ClusterPscConfigStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPscConfigStatus.

func (*ClusterPscConfigStatus) DeepCopyInto

func (in *ClusterPscConfigStatus) DeepCopyInto(out *ClusterPscConfigStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterPscConfigs

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}. */
	NetworkRef v1alpha1.ResourceRef `json:"networkRef"`
}

func (*ClusterPscConfigs) DeepCopy

func (in *ClusterPscConfigs) DeepCopy() *ClusterPscConfigs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPscConfigs.

func (*ClusterPscConfigs) DeepCopyInto

func (in *ClusterPscConfigs) DeepCopyInto(out *ClusterPscConfigs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterPscConnectionsStatus

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"`
}

func (*ClusterPscConnectionsStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPscConnectionsStatus.

func (*ClusterPscConnectionsStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterRdbConfig

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"`
}

func (*ClusterRdbConfig) DeepCopy

func (in *ClusterRdbConfig) DeepCopy() *ClusterRdbConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRdbConfig.

func (*ClusterRdbConfig) DeepCopyInto

func (in *ClusterRdbConfig) DeepCopyInto(out *ClusterRdbConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterStateInfoStatus

type ClusterStateInfoStatus struct {
	/* Describes ongoing update on the cluster when cluster state is UPDATING. */
	// +optional
	UpdateInfo *ClusterUpdateInfoStatus `json:"updateInfo,omitempty"`
}

func (*ClusterStateInfoStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStateInfoStatus.

func (*ClusterStateInfoStatus) DeepCopyInto

func (in *ClusterStateInfoStatus) DeepCopyInto(out *ClusterStateInfoStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterUpdateInfoStatus

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"`
}

func (*ClusterUpdateInfoStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterUpdateInfoStatus.

func (*ClusterUpdateInfoStatus) DeepCopyInto

func (in *ClusterUpdateInfoStatus) DeepCopyInto(out *ClusterUpdateInfoStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterZoneDistributionConfig

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"`
}

func (*ClusterZoneDistributionConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterZoneDistributionConfig.

func (*ClusterZoneDistributionConfig) DeepCopyInto

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 redis 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"`
}

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 RedisClusterSpec

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"`

	/* Immutable. Location of the resource. */
	Location string `json:"location"`

	/* 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"`

	/* Immutable. The Project that this resource belongs to. */
	ProjectRef v1alpha1.ResourceRef `json:"projectRef"`

	/* 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"`
}

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
	   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"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL