Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the wordpress v1alpha1 API group +kubebuilder:object:generate=true +groupName=wordpress.samples.stacks.crossplane.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "wordpress.samples.stacks.crossplane.io", 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 ( WordpressInstanceKind = reflect.TypeOf(WordpressInstance{}).Name() WordpressInstanceKindAPIVersion = WordpressInstanceKind + "." + GroupVersion.String() WordpressInstanceGroupVersionKind = GroupVersion.WithKind(WordpressInstanceKind) )
WordpressInstance type metadata.
Functions ¶
This section is empty.
Types ¶
type ProvisionPolicy ¶
type ProvisionPolicy string
ProvisionPolicy indicates whether Wordpress should be deployed to an existing Kubernetes cluster or to provision a new cluster.
const ( // ProvisionNewCluster means a new KubernetesCluster claim will be created. ProvisionNewCluster ProvisionPolicy = "ProvisionNewCluster" // UseExistingTarget means an existing KubernetesTarget in the same // namespace will be used for scheduling. UseExistingTarget ProvisionPolicy = "UseExistingTarget" )
type WordpressInstance ¶
type WordpressInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WordpressInstanceSpec `json:"spec,omitempty"` Status WordpressInstanceStatus `json:"status,omitempty"` }
WordpressInstance is the Schema for the wordpressinstances API
func (*WordpressInstance) DeepCopy ¶
func (in *WordpressInstance) DeepCopy() *WordpressInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WordpressInstance.
func (*WordpressInstance) DeepCopyInto ¶
func (in *WordpressInstance) DeepCopyInto(out *WordpressInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WordpressInstance) DeepCopyObject ¶
func (in *WordpressInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WordpressInstanceList ¶
type WordpressInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []WordpressInstance `json:"items"` }
WordpressInstanceList contains a list of WordpressInstance
func (*WordpressInstanceList) DeepCopy ¶
func (in *WordpressInstanceList) DeepCopy() *WordpressInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WordpressInstanceList.
func (*WordpressInstanceList) DeepCopyInto ¶
func (in *WordpressInstanceList) DeepCopyInto(out *WordpressInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WordpressInstanceList) DeepCopyObject ¶
func (in *WordpressInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WordpressInstanceSpec ¶
type WordpressInstanceSpec struct { // Image will be used as image of the container that Wordpress runs in. // If not specified, the default will be used. // +optional Image string `json:"image,omitempty"` // MySQLInstanceRef refers to the MySQLInstance object managed by this // WordpressInstance // +optional MySQLInstanceRef *v1.ObjectReference `json:"mySQLInstanceRef,omitempty"` // ProvisionPolicy indicates whether Wordpress should be deployed to an // existing Kubernetes cluster or to provision a new cluster. // +optional // +kubebuilder:validation:Enum=ProvisionNewCluster;UseExistingTarget ProvisionPolicy *ProvisionPolicy `json:"provisionPolicy,omitempty"` // KubernetesApplicationRef refers to the KubernetesApplication object managed by this // WordpressInstance // +optional KubernetesApplicationRef *v1.ObjectReference `json:"kubernetesApplicationRef,omitempty"` }
WordpressInstanceSpec defines the desired state of WordpressInstance
func (*WordpressInstanceSpec) DeepCopy ¶
func (in *WordpressInstanceSpec) DeepCopy() *WordpressInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WordpressInstanceSpec.
func (*WordpressInstanceSpec) DeepCopyInto ¶
func (in *WordpressInstanceSpec) DeepCopyInto(out *WordpressInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WordpressInstanceStatus ¶
type WordpressInstanceStatus struct { runtimev1alpha1.ConditionedStatus `json:",inline"` // Endpoint is the URL of Wordpress that you can use to access. // It will be populated as soon as a LoadBalancer is assigned to Wordpress // service. Endpoint string `json:"endpoint,omitempty"` }
WordpressInstanceStatus defines the observed state of WordpressInstance
func (*WordpressInstanceStatus) DeepCopy ¶
func (in *WordpressInstanceStatus) DeepCopy() *WordpressInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WordpressInstanceStatus.
func (*WordpressInstanceStatus) DeepCopyInto ¶
func (in *WordpressInstanceStatus) DeepCopyInto(out *WordpressInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.