Documentation ¶
Overview ¶
Package v1alpha1 contains portable resource claims for caching services such as Redis clusters. +kubebuilder:object:generate=true +groupName=cache.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type RedisCluster
- func (in *RedisCluster) DeepCopy() *RedisCluster
- func (in *RedisCluster) DeepCopyInto(out *RedisCluster)
- func (in *RedisCluster) DeepCopyObject() runtime.Object
- func (cm *RedisCluster) GetBindingPhase() runtimev1alpha1.BindingPhase
- func (cm *RedisCluster) GetClassReference() *corev1.ObjectReference
- func (cm *RedisCluster) GetClassSelector() *metav1.LabelSelector
- func (cm *RedisCluster) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (cm *RedisCluster) GetResourceReference() *corev1.ObjectReference
- func (cm *RedisCluster) GetWriteConnectionSecretToReference() *runtimev1alpha1.LocalSecretReference
- func (cm *RedisCluster) SetBindingPhase(p runtimev1alpha1.BindingPhase)
- func (cm *RedisCluster) SetClassReference(r *corev1.ObjectReference)
- func (cm *RedisCluster) SetClassSelector(s *metav1.LabelSelector)
- func (cm *RedisCluster) SetConditions(c ...runtimev1alpha1.Condition)
- func (cm *RedisCluster) SetResourceReference(r *corev1.ObjectReference)
- func (cm *RedisCluster) SetWriteConnectionSecretToReference(r *runtimev1alpha1.LocalSecretReference)
- type RedisClusterList
- type RedisClusterSpec
Constants ¶
const ( Group = "cache.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
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 ( RedisClusterKind = reflect.TypeOf(RedisCluster{}).Name() RedisClusterGroupKind = schema.GroupKind{Group: Group, Kind: RedisClusterKind}.String() RedisClusterKindAPIVersion = RedisClusterKind + "." + SchemeGroupVersion.String() RedisClusterGroupVersionKind = SchemeGroupVersion.WithKind(RedisClusterKind) )
RedisCluster type metadata.
Functions ¶
This section is empty.
Types ¶
type RedisCluster ¶
type RedisCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisClusterSpec `json:"spec,omitempty"` Status runtimev1alpha1.ResourceClaimStatus `json:"status,omitempty"` }
A RedisCluster is a portable resource claim that may be satisfied by binding to a Redis managed resource such as a GCP CloudMemorystore instance or an AWS ReplicationGroup. Despite the name RedisCluster claims may bind to Redis managed resources that are a single node, or not in cluster mode. +kubebuilder:resource:categories={crossplane,claim} +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="CLASS-KIND",type="string",JSONPath=".spec.classRef.kind" +kubebuilder:printcolumn:name="CLASS-NAME",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="RESOURCE-KIND",type="string",JSONPath=".spec.resourceRef.kind" +kubebuilder:printcolumn:name="RESOURCE-NAME",type="string",JSONPath=".spec.resourceRef.name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status
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.
func (*RedisCluster) GetBindingPhase ¶
func (cm *RedisCluster) GetBindingPhase() runtimev1alpha1.BindingPhase
GetBindingPhase of this RedisCluster.
func (*RedisCluster) GetClassReference ¶ added in v0.9.0
func (cm *RedisCluster) GetClassReference() *corev1.ObjectReference
GetClassReference of this RedisCluster.
func (*RedisCluster) GetClassSelector ¶ added in v0.9.0
func (cm *RedisCluster) GetClassSelector() *metav1.LabelSelector
GetClassSelector of this RedisCluster.
func (*RedisCluster) GetCondition ¶ added in v0.9.0
func (cm *RedisCluster) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
GetCondition of this RedisCluster.
func (*RedisCluster) GetResourceReference ¶
func (cm *RedisCluster) GetResourceReference() *corev1.ObjectReference
GetResourceReference of this RedisCluster.
func (*RedisCluster) GetWriteConnectionSecretToReference ¶
func (cm *RedisCluster) GetWriteConnectionSecretToReference() *runtimev1alpha1.LocalSecretReference
GetWriteConnectionSecretToReference of this RedisCluster.
func (*RedisCluster) SetBindingPhase ¶
func (cm *RedisCluster) SetBindingPhase(p runtimev1alpha1.BindingPhase)
SetBindingPhase of this RedisCluster.
func (*RedisCluster) SetClassReference ¶ added in v0.9.0
func (cm *RedisCluster) SetClassReference(r *corev1.ObjectReference)
SetClassReference of this RedisCluster.
func (*RedisCluster) SetClassSelector ¶ added in v0.9.0
func (cm *RedisCluster) SetClassSelector(s *metav1.LabelSelector)
SetClassSelector of this RedisCluster.
func (*RedisCluster) SetConditions ¶
func (cm *RedisCluster) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this RedisCluster.
func (*RedisCluster) SetResourceReference ¶
func (cm *RedisCluster) SetResourceReference(r *corev1.ObjectReference)
SetResourceReference of this RedisCluster.
func (*RedisCluster) SetWriteConnectionSecretToReference ¶
func (cm *RedisCluster) SetWriteConnectionSecretToReference(r *runtimev1alpha1.LocalSecretReference)
SetWriteConnectionSecretToReference of this RedisCluster.
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.
func (*RedisClusterList) GetItems ¶ added in v0.10.0
func (l *RedisClusterList) GetItems() []resource.Claim
GetItems of this RedisClusterList.
type RedisClusterSpec ¶
type RedisClusterSpec struct { runtimev1alpha1.ResourceClaimSpec `json:",inline"` // EngineVersion specifies the desired Redis version. // +kubebuilder:validation:Enum="2.6";"2.8";"3.2";"4.0";"5.0" EngineVersion string `json:"engineVersion,omitempty"` }
RedisClusterSpec specifies the desired state of a RedisCluster.
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.