Documentation ¶
Overview ¶
Package v1alpha1 contains portable resource claims for database services such as MySQL or PostgreSQL. +kubebuilder:object:generate=true +groupName=database.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type MySQLInstance
- func (in *MySQLInstance) DeepCopy() *MySQLInstance
- func (in *MySQLInstance) DeepCopyInto(out *MySQLInstance)
- func (in *MySQLInstance) DeepCopyObject() runtime.Object
- func (cm *MySQLInstance) GetBindingPhase() runtimev1alpha1.BindingPhase
- func (cm *MySQLInstance) GetClassReference() *corev1.ObjectReference
- func (cm *MySQLInstance) GetClassSelector() *metav1.LabelSelector
- func (cm *MySQLInstance) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (cm *MySQLInstance) GetResourceReference() *corev1.ObjectReference
- func (cm *MySQLInstance) GetWriteConnectionSecretToReference() *runtimev1alpha1.LocalSecretReference
- func (cm *MySQLInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)
- func (cm *MySQLInstance) SetClassReference(r *corev1.ObjectReference)
- func (cm *MySQLInstance) SetClassSelector(s *metav1.LabelSelector)
- func (cm *MySQLInstance) SetConditions(c ...runtimev1alpha1.Condition)
- func (cm *MySQLInstance) SetResourceReference(r *corev1.ObjectReference)
- func (cm *MySQLInstance) SetWriteConnectionSecretToReference(r *runtimev1alpha1.LocalSecretReference)
- type MySQLInstanceList
- type MySQLInstanceSpec
- type PostgreSQLInstance
- func (in *PostgreSQLInstance) DeepCopy() *PostgreSQLInstance
- func (in *PostgreSQLInstance) DeepCopyInto(out *PostgreSQLInstance)
- func (in *PostgreSQLInstance) DeepCopyObject() runtime.Object
- func (cm *PostgreSQLInstance) GetBindingPhase() runtimev1alpha1.BindingPhase
- func (cm *PostgreSQLInstance) GetClassReference() *corev1.ObjectReference
- func (cm *PostgreSQLInstance) GetClassSelector() *metav1.LabelSelector
- func (cm *PostgreSQLInstance) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (cm *PostgreSQLInstance) GetResourceReference() *corev1.ObjectReference
- func (cm *PostgreSQLInstance) GetWriteConnectionSecretToReference() *runtimev1alpha1.LocalSecretReference
- func (cm *PostgreSQLInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)
- func (cm *PostgreSQLInstance) SetClassReference(r *corev1.ObjectReference)
- func (cm *PostgreSQLInstance) SetClassSelector(s *metav1.LabelSelector)
- func (cm *PostgreSQLInstance) SetConditions(c ...runtimev1alpha1.Condition)
- func (cm *PostgreSQLInstance) SetResourceReference(r *corev1.ObjectReference)
- func (cm *PostgreSQLInstance) SetWriteConnectionSecretToReference(r *runtimev1alpha1.LocalSecretReference)
- type PostgreSQLInstanceList
- type PostgreSQLInstanceSpec
Constants ¶
const ( Group = "database.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 ( MySQLInstanceKind = reflect.TypeOf(MySQLInstance{}).Name() MySQLInstanceKindAPIVersion = MySQLInstanceKind + "." + SchemeGroupVersion.String() MySQLInstanceGroupVersionKind = SchemeGroupVersion.WithKind(MySQLInstanceKind) )
MySQLInstance type metadata.
var ( PostgreSQLInstanceKind = reflect.TypeOf(PostgreSQLInstance{}).Name() PostgreSQLInstanceKindAPIVersion = PostgreSQLInstanceKind + "." + SchemeGroupVersion.String() PostgreSQLInstanceGroupVersionKind = SchemeGroupVersion.WithKind(PostgreSQLInstanceKind) )
PostgreSQLInstance type metadata.
Functions ¶
This section is empty.
Types ¶
type MySQLInstance ¶
type MySQLInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MySQLInstanceSpec `json:"spec,omitempty"` Status runtimev1alpha1.ResourceClaimStatus `json:"status,omitempty"` }
A MySQLInstance is a portable resource claim that may be satisfied by binding to a MySQL managed resource such as an AWS RDS instance or a GCP CloudSQL instance. +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 (*MySQLInstance) DeepCopy ¶
func (in *MySQLInstance) DeepCopy() *MySQLInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLInstance.
func (*MySQLInstance) DeepCopyInto ¶
func (in *MySQLInstance) DeepCopyInto(out *MySQLInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MySQLInstance) DeepCopyObject ¶
func (in *MySQLInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MySQLInstance) GetBindingPhase ¶
func (cm *MySQLInstance) GetBindingPhase() runtimev1alpha1.BindingPhase
GetBindingPhase of this MySQLInstance.
func (*MySQLInstance) GetClassReference ¶ added in v0.4.0
func (cm *MySQLInstance) GetClassReference() *corev1.ObjectReference
GetClassReference of this MySQLInstance.
func (*MySQLInstance) GetClassSelector ¶ added in v0.4.0
func (cm *MySQLInstance) GetClassSelector() *metav1.LabelSelector
GetClassSelector of this MySQLInstance.
func (*MySQLInstance) GetCondition ¶ added in v0.4.0
func (cm *MySQLInstance) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
GetCondition of this MySQLInstance.
func (*MySQLInstance) GetResourceReference ¶
func (cm *MySQLInstance) GetResourceReference() *corev1.ObjectReference
GetResourceReference of this MySQLInstance.
func (*MySQLInstance) GetWriteConnectionSecretToReference ¶
func (cm *MySQLInstance) GetWriteConnectionSecretToReference() *runtimev1alpha1.LocalSecretReference
GetWriteConnectionSecretToReference of this MySQLInstance.
func (*MySQLInstance) SetBindingPhase ¶
func (cm *MySQLInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)
SetBindingPhase of this MySQLInstance.
func (*MySQLInstance) SetClassReference ¶ added in v0.4.0
func (cm *MySQLInstance) SetClassReference(r *corev1.ObjectReference)
SetClassReference of this MySQLInstance.
func (*MySQLInstance) SetClassSelector ¶ added in v0.4.0
func (cm *MySQLInstance) SetClassSelector(s *metav1.LabelSelector)
SetClassSelector of this MySQLInstance.
func (*MySQLInstance) SetConditions ¶
func (cm *MySQLInstance) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this MySQLInstance.
func (*MySQLInstance) SetResourceReference ¶
func (cm *MySQLInstance) SetResourceReference(r *corev1.ObjectReference)
SetResourceReference of this MySQLInstance.
func (*MySQLInstance) SetWriteConnectionSecretToReference ¶
func (cm *MySQLInstance) SetWriteConnectionSecretToReference(r *runtimev1alpha1.LocalSecretReference)
SetWriteConnectionSecretToReference of this MySQLInstance.
type MySQLInstanceList ¶
type MySQLInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MySQLInstance `json:"items"` }
MySQLInstanceList contains a list of MySQLInstance.
func (*MySQLInstanceList) DeepCopy ¶
func (in *MySQLInstanceList) DeepCopy() *MySQLInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLInstanceList.
func (*MySQLInstanceList) DeepCopyInto ¶
func (in *MySQLInstanceList) DeepCopyInto(out *MySQLInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MySQLInstanceList) DeepCopyObject ¶
func (in *MySQLInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MySQLInstanceSpec ¶
type MySQLInstanceSpec struct { runtimev1alpha1.ResourceClaimSpec `json:",inline"` // EngineVersion specifies the desired MySQL engine version, e.g. 5.7. // +kubebuilder:validation:Enum="5.6";"5.7" EngineVersion string `json:"engineVersion,omitempty"` }
MySQLInstanceSpec specifies the desired state of a MySQLInstance.
func (*MySQLInstanceSpec) DeepCopy ¶
func (in *MySQLInstanceSpec) DeepCopy() *MySQLInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLInstanceSpec.
func (*MySQLInstanceSpec) DeepCopyInto ¶
func (in *MySQLInstanceSpec) DeepCopyInto(out *MySQLInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgreSQLInstance ¶
type PostgreSQLInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PostgreSQLInstanceSpec `json:"spec,omitempty"` Status runtimev1alpha1.ResourceClaimStatus `json:"status,omitempty"` }
A PostgreSQLInstance is a portable resource claim that may be satisfied by binding to a PostgreSQL managed resource such as an AWS RDS instance or a GCP CloudSQL instance. +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 (*PostgreSQLInstance) DeepCopy ¶
func (in *PostgreSQLInstance) DeepCopy() *PostgreSQLInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLInstance.
func (*PostgreSQLInstance) DeepCopyInto ¶
func (in *PostgreSQLInstance) DeepCopyInto(out *PostgreSQLInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgreSQLInstance) DeepCopyObject ¶
func (in *PostgreSQLInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PostgreSQLInstance) GetBindingPhase ¶
func (cm *PostgreSQLInstance) GetBindingPhase() runtimev1alpha1.BindingPhase
GetBindingPhase of this PostgreSQLInstance.
func (*PostgreSQLInstance) GetClassReference ¶ added in v0.4.0
func (cm *PostgreSQLInstance) GetClassReference() *corev1.ObjectReference
GetClassReference of this PostgreSQLInstance.
func (*PostgreSQLInstance) GetClassSelector ¶ added in v0.4.0
func (cm *PostgreSQLInstance) GetClassSelector() *metav1.LabelSelector
GetClassSelector of this PostgreSQLInstance.
func (*PostgreSQLInstance) GetCondition ¶ added in v0.4.0
func (cm *PostgreSQLInstance) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
GetCondition of this PostgreSQLInstance.
func (*PostgreSQLInstance) GetResourceReference ¶
func (cm *PostgreSQLInstance) GetResourceReference() *corev1.ObjectReference
GetResourceReference of this PostgreSQLInstance.
func (*PostgreSQLInstance) GetWriteConnectionSecretToReference ¶
func (cm *PostgreSQLInstance) GetWriteConnectionSecretToReference() *runtimev1alpha1.LocalSecretReference
GetWriteConnectionSecretToReference of this PostgreSQLInstance.
func (*PostgreSQLInstance) SetBindingPhase ¶
func (cm *PostgreSQLInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)
SetBindingPhase of this PostgreSQLInstance.
func (*PostgreSQLInstance) SetClassReference ¶ added in v0.4.0
func (cm *PostgreSQLInstance) SetClassReference(r *corev1.ObjectReference)
SetClassReference of this PostgreSQLInstance.
func (*PostgreSQLInstance) SetClassSelector ¶ added in v0.4.0
func (cm *PostgreSQLInstance) SetClassSelector(s *metav1.LabelSelector)
SetClassSelector of this PostgreSQLInstance.
func (*PostgreSQLInstance) SetConditions ¶
func (cm *PostgreSQLInstance) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this PostgreSQLInstance.
func (*PostgreSQLInstance) SetResourceReference ¶
func (cm *PostgreSQLInstance) SetResourceReference(r *corev1.ObjectReference)
SetResourceReference of this PostgreSQLInstance.
func (*PostgreSQLInstance) SetWriteConnectionSecretToReference ¶
func (cm *PostgreSQLInstance) SetWriteConnectionSecretToReference(r *runtimev1alpha1.LocalSecretReference)
SetWriteConnectionSecretToReference of this PostgreSQLInstance.
type PostgreSQLInstanceList ¶
type PostgreSQLInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PostgreSQLInstance `json:"items"` }
PostgreSQLInstanceList contains a list of PostgreSQLInstance.
func (*PostgreSQLInstanceList) DeepCopy ¶
func (in *PostgreSQLInstanceList) DeepCopy() *PostgreSQLInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLInstanceList.
func (*PostgreSQLInstanceList) DeepCopyInto ¶
func (in *PostgreSQLInstanceList) DeepCopyInto(out *PostgreSQLInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgreSQLInstanceList) DeepCopyObject ¶
func (in *PostgreSQLInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgreSQLInstanceSpec ¶
type PostgreSQLInstanceSpec struct { runtimev1alpha1.ResourceClaimSpec `json:",inline"` // EngineVersion specifies the desired PostgreSQL engine version, e.g. 9.6. // +kubebuilder:validation:Enum="9.6" EngineVersion string `json:"engineVersion,omitempty"` }
PostgreSQLInstanceSpec specifies the desired state of a PostgreSQLInstance. PostgreSQLInstance.
func (*PostgreSQLInstanceSpec) DeepCopy ¶
func (in *PostgreSQLInstanceSpec) DeepCopy() *PostgreSQLInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLInstanceSpec.
func (*PostgreSQLInstanceSpec) DeepCopyInto ¶
func (in *PostgreSQLInstanceSpec) DeepCopyInto(out *PostgreSQLInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.