Documentation
¶
Overview ¶
Package v1alpha2 contains managed resources for GCP cache services such as CloudMemorystore. +kubebuilder:object:generate=true +groupName=cache.gcp.crossplane.io +versionName=v1alpha2
Index ¶
- Constants
- Variables
- type CloudMemorystoreInstance
- func (in *CloudMemorystoreInstance) DeepCopy() *CloudMemorystoreInstance
- func (in *CloudMemorystoreInstance) DeepCopyInto(out *CloudMemorystoreInstance)
- func (in *CloudMemorystoreInstance) DeepCopyObject() runtime.Object
- func (i *CloudMemorystoreInstance) GetBindingPhase() runtimev1alpha1.BindingPhase
- func (i *CloudMemorystoreInstance) GetClaimReference() *corev1.ObjectReference
- func (i *CloudMemorystoreInstance) GetNonPortableClassReference() *corev1.ObjectReference
- func (i *CloudMemorystoreInstance) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy
- func (i *CloudMemorystoreInstance) GetWriteConnectionSecretToReference() corev1.LocalObjectReference
- func (i *CloudMemorystoreInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)
- func (i *CloudMemorystoreInstance) SetClaimReference(r *corev1.ObjectReference)
- func (i *CloudMemorystoreInstance) SetConditions(c ...runtimev1alpha1.Condition)
- func (i *CloudMemorystoreInstance) SetNonPortableClassReference(r *corev1.ObjectReference)
- func (i *CloudMemorystoreInstance) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)
- func (i *CloudMemorystoreInstance) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)
- type CloudMemorystoreInstanceClass
- func (in *CloudMemorystoreInstanceClass) DeepCopy() *CloudMemorystoreInstanceClass
- func (in *CloudMemorystoreInstanceClass) DeepCopyInto(out *CloudMemorystoreInstanceClass)
- func (in *CloudMemorystoreInstanceClass) DeepCopyObject() runtime.Object
- func (i *CloudMemorystoreInstanceClass) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy
- func (i *CloudMemorystoreInstanceClass) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)
- type CloudMemorystoreInstanceClassList
- type CloudMemorystoreInstanceClassSpecTemplate
- type CloudMemorystoreInstanceList
- type CloudMemorystoreInstanceParameters
- type CloudMemorystoreInstanceSpec
- type CloudMemorystoreInstanceStatus
Constants ¶
const ( Group = "cache.gcp.crossplane.io" Version = "v1alpha2" )
Package type metadata.
Variables ¶
var ( StateUnspecified = redis.Instance_STATE_UNSPECIFIED.String() StateCreating = redis.Instance_CREATING.String() StateReady = redis.Instance_READY.String() StateUpdating = redis.Instance_UPDATING.String() StateDeleting = redis.Instance_DELETING.String() StateRepairing = redis.Instance_REPAIRING.String() StateMaintenance = redis.Instance_MAINTENANCE.String() )
Cloud Memorystore instance states.
var ( TierBasic = redis.Instance_BASIC.String() TierStandardHA = redis.Instance_STANDARD_HA.String() )
Cloud Memorystore instance tiers.
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var ( CloudMemorystoreInstanceKind = reflect.TypeOf(CloudMemorystoreInstance{}).Name() CloudMemorystoreInstanceKindAPIVersion = CloudMemorystoreInstanceKind + "." + SchemeGroupVersion.String() CloudMemorystoreInstanceGroupVersionKind = SchemeGroupVersion.WithKind(CloudMemorystoreInstanceKind) )
CloudMemorystoreInstance type metadata.
var ( CloudMemorystoreInstanceClassKind = reflect.TypeOf(CloudMemorystoreInstanceClass{}).Name() CloudMemorystoreInstanceClassKindAPIVersion = CloudMemorystoreInstanceClassKind + "." + SchemeGroupVersion.String() CloudMemorystoreInstanceClassGroupVersionKind = SchemeGroupVersion.WithKind(CloudMemorystoreInstanceClassKind) )
CloudMemorystoreInstanceClass type metadata.
Functions ¶
This section is empty.
Types ¶
type CloudMemorystoreInstance ¶
type CloudMemorystoreInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CloudMemorystoreInstanceSpec `json:"spec,omitempty"` Status CloudMemorystoreInstanceStatus `json:"status,omitempty"` }
A CloudMemorystoreInstance is a managed resource that represents a Google Cloud Memorystore instance. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.state" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.redisVersion" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
func (*CloudMemorystoreInstance) DeepCopy ¶
func (in *CloudMemorystoreInstance) DeepCopy() *CloudMemorystoreInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) DeepCopyInto ¶
func (in *CloudMemorystoreInstance) DeepCopyInto(out *CloudMemorystoreInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudMemorystoreInstance) DeepCopyObject ¶
func (in *CloudMemorystoreInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CloudMemorystoreInstance) GetBindingPhase ¶
func (i *CloudMemorystoreInstance) GetBindingPhase() runtimev1alpha1.BindingPhase
GetBindingPhase of this CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) GetClaimReference ¶
func (i *CloudMemorystoreInstance) GetClaimReference() *corev1.ObjectReference
GetClaimReference of this CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) GetNonPortableClassReference ¶
func (i *CloudMemorystoreInstance) GetNonPortableClassReference() *corev1.ObjectReference
GetNonPortableClassReference of this CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) GetReclaimPolicy ¶
func (i *CloudMemorystoreInstance) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy
GetReclaimPolicy of this CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) GetWriteConnectionSecretToReference ¶
func (i *CloudMemorystoreInstance) GetWriteConnectionSecretToReference() corev1.LocalObjectReference
GetWriteConnectionSecretToReference of this CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) SetBindingPhase ¶
func (i *CloudMemorystoreInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)
SetBindingPhase of this CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) SetClaimReference ¶
func (i *CloudMemorystoreInstance) SetClaimReference(r *corev1.ObjectReference)
SetClaimReference of this CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) SetConditions ¶
func (i *CloudMemorystoreInstance) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) SetNonPortableClassReference ¶
func (i *CloudMemorystoreInstance) SetNonPortableClassReference(r *corev1.ObjectReference)
SetNonPortableClassReference of this CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) SetReclaimPolicy ¶
func (i *CloudMemorystoreInstance) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)
SetReclaimPolicy of this CloudMemorystoreInstance.
func (*CloudMemorystoreInstance) SetWriteConnectionSecretToReference ¶
func (i *CloudMemorystoreInstance) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)
SetWriteConnectionSecretToReference of this CloudMemorystoreInstance.
type CloudMemorystoreInstanceClass ¶
type CloudMemorystoreInstanceClass struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // SpecTemplate is a template for the spec of a dynamically provisioned // CloudMemorystoreInstance. SpecTemplate CloudMemorystoreInstanceClassSpecTemplate `json:"specTemplate"` }
A CloudMemorystoreInstanceClass is a non-portable resource class. It defines the desired spec of resource claims that use it to dynamically provision a managed resource. +kubebuilder:printcolumn:name="PROVIDER-REF",type="string",JSONPath=".specTemplate.providerRef.name" +kubebuilder:printcolumn:name="RECLAIM-POLICY",type="string",JSONPath=".specTemplate.reclaimPolicy" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
func (*CloudMemorystoreInstanceClass) DeepCopy ¶
func (in *CloudMemorystoreInstanceClass) DeepCopy() *CloudMemorystoreInstanceClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudMemorystoreInstanceClass.
func (*CloudMemorystoreInstanceClass) DeepCopyInto ¶
func (in *CloudMemorystoreInstanceClass) DeepCopyInto(out *CloudMemorystoreInstanceClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudMemorystoreInstanceClass) DeepCopyObject ¶
func (in *CloudMemorystoreInstanceClass) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CloudMemorystoreInstanceClass) GetReclaimPolicy ¶
func (i *CloudMemorystoreInstanceClass) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy
GetReclaimPolicy of this CloudMemorystoreInstanceClass.
func (*CloudMemorystoreInstanceClass) SetReclaimPolicy ¶
func (i *CloudMemorystoreInstanceClass) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)
SetReclaimPolicy of this CloudMemorystoreInstanceClass.
type CloudMemorystoreInstanceClassList ¶
type CloudMemorystoreInstanceClassList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CloudMemorystoreInstanceClass `json:"items"` }
CloudMemorystoreInstanceClassList contains a list of cloud memorystore resource classes.
func (*CloudMemorystoreInstanceClassList) DeepCopy ¶
func (in *CloudMemorystoreInstanceClassList) DeepCopy() *CloudMemorystoreInstanceClassList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudMemorystoreInstanceClassList.
func (*CloudMemorystoreInstanceClassList) DeepCopyInto ¶
func (in *CloudMemorystoreInstanceClassList) DeepCopyInto(out *CloudMemorystoreInstanceClassList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudMemorystoreInstanceClassList) DeepCopyObject ¶
func (in *CloudMemorystoreInstanceClassList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudMemorystoreInstanceClassSpecTemplate ¶
type CloudMemorystoreInstanceClassSpecTemplate struct { runtimev1alpha1.NonPortableClassSpecTemplate `json:",inline"` CloudMemorystoreInstanceParameters `json:",inline"` }
A CloudMemorystoreInstanceClassSpecTemplate is a template for the spec of a dynamically provisioned CloudMemorystoreInstance.
func (*CloudMemorystoreInstanceClassSpecTemplate) DeepCopy ¶
func (in *CloudMemorystoreInstanceClassSpecTemplate) DeepCopy() *CloudMemorystoreInstanceClassSpecTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudMemorystoreInstanceClassSpecTemplate.
func (*CloudMemorystoreInstanceClassSpecTemplate) DeepCopyInto ¶
func (in *CloudMemorystoreInstanceClassSpecTemplate) DeepCopyInto(out *CloudMemorystoreInstanceClassSpecTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudMemorystoreInstanceList ¶
type CloudMemorystoreInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CloudMemorystoreInstance `json:"items"` }
CloudMemorystoreInstanceList contains a list of CloudMemorystoreInstance
func (*CloudMemorystoreInstanceList) DeepCopy ¶
func (in *CloudMemorystoreInstanceList) DeepCopy() *CloudMemorystoreInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudMemorystoreInstanceList.
func (*CloudMemorystoreInstanceList) DeepCopyInto ¶
func (in *CloudMemorystoreInstanceList) DeepCopyInto(out *CloudMemorystoreInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudMemorystoreInstanceList) DeepCopyObject ¶
func (in *CloudMemorystoreInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudMemorystoreInstanceParameters ¶
type CloudMemorystoreInstanceParameters struct { // Region in which to create this Cloud Memorystore cluster. Region string `json:"region"` // Tier specifies the replication level of the Redis cluster. BASIC provides // a single Redis instance with no high availability. STANDARD_HA provides a // cluster of two Redis instances in distinct availability zones. // https://cloud.google.com/memorystore/docs/redis/redis-tiers // +kubebuilder:validation:Enum=BASIC;STANDARD_HA Tier string `json:"tier"` // LocationID specifies the zone where the instance will be provisioned. If // not provided, the service will choose a zone for the instance. For // STANDARD_HA tier, instances will be created across two zones for // protection against zonal failures. // +optional LocationID string `json:"locationId,omitempty"` // AlternativeLocationID is only applicable to STANDARD_HA tier, which // protects the instance against zonal failures by provisioning it across // two zones. If provided, it must be a different zone from the one provided // in locationId. // +optional AlternativeLocationID string `json:"alternativeLocationId,omitempty"` // MemorySizeGB specifies the Redis memory size in GiB. MemorySizeGB int `json:"memorySizeGb"` // ReservedIPRange specifies the CIDR range of internal addresses that are // reserved for this instance. If not provided, the service will choose an // unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must // be unique and non-overlapping with existing subnets in an authorized // network. // +optional ReservedIPRange string `json:"reservedIpRange,omitempty"` // AuthorizedNetwork specifies the full name of the Google Compute Engine // network to which the instance is connected. If left unspecified, the // default network will be used. // +optional AuthorizedNetwork string `json:"authorizedNetwork,omitempty"` // RedisVersion specifies the version of Redis software. If not provided, // latest supported version will be used. Updating the version will perform // an upgrade/downgrade to the new version. Currently, the supported values // are REDIS_3_2 for Redis 3.2, and REDIS_4_0 for Redis 4.0 (the default). // +kubebuilder:validation:Enum=REDIS_3_2;REDIS_4_0 // +optional RedisVersion string `json:"redisVersion,omitempty"` // RedisConfigs specifies Redis configuration parameters, according to // http://redis.io/topics/config. Currently, the only supported parameters // are: // * maxmemory-policy // * notify-keyspace-events // +optional RedisConfigs map[string]string `json:"redisConfigs,omitempty"` }
CloudMemorystoreInstanceParameters define the desired state of an Google Cloud Memorystore instance. Most fields map directly to an Instance: https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#Instance
func (*CloudMemorystoreInstanceParameters) DeepCopy ¶
func (in *CloudMemorystoreInstanceParameters) DeepCopy() *CloudMemorystoreInstanceParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudMemorystoreInstanceParameters.
func (*CloudMemorystoreInstanceParameters) DeepCopyInto ¶
func (in *CloudMemorystoreInstanceParameters) DeepCopyInto(out *CloudMemorystoreInstanceParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudMemorystoreInstanceSpec ¶
type CloudMemorystoreInstanceSpec struct { runtimev1alpha1.ResourceSpec `json:",inline"` CloudMemorystoreInstanceParameters `json:",inline"` }
A CloudMemorystoreInstanceSpec defines the desired state of a CloudMemorystoreInstance.
func (*CloudMemorystoreInstanceSpec) DeepCopy ¶
func (in *CloudMemorystoreInstanceSpec) DeepCopy() *CloudMemorystoreInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudMemorystoreInstanceSpec.
func (*CloudMemorystoreInstanceSpec) DeepCopyInto ¶
func (in *CloudMemorystoreInstanceSpec) DeepCopyInto(out *CloudMemorystoreInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudMemorystoreInstanceStatus ¶
type CloudMemorystoreInstanceStatus struct { runtimev1alpha1.ResourceStatus `json:",inline"` // State of this instance. State string `json:"state,omitempty"` // Additional information about the current status of this instance, if // available. Message string `json:"message,omitempty"` // ProviderID is the external ID to identify this resource in the cloud // provider, e.g. 'projects/fooproj/locations/us-foo1/instances/foo' ProviderID string `json:"providerID,omitempty"` // CurrentLocationID is the current zone where the Redis endpoint is placed. // For Basic Tier instances, this will always be the same as the locationId // provided by the user at creation time. For Standard Tier instances, this // can be either locationId or alternativeLocationId and can change after a // failover event. CurrentLocationID string `json:"currentLocationId,omitempty"` // Endpoint of the Cloud Memorystore instance used in connection strings. Endpoint string `json:"endpoint,omitempty"` // Port at which the Cloud Memorystore instance endpoint is listening. Port int `json:"port,omitempty"` }
A CloudMemorystoreInstanceStatus represents the observed state of a CloudMemorystoreInstance.
func (*CloudMemorystoreInstanceStatus) DeepCopy ¶
func (in *CloudMemorystoreInstanceStatus) DeepCopy() *CloudMemorystoreInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudMemorystoreInstanceStatus.
func (*CloudMemorystoreInstanceStatus) DeepCopyInto ¶
func (in *CloudMemorystoreInstanceStatus) DeepCopyInto(out *CloudMemorystoreInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.