Documentation ¶
Overview ¶
Package v1alpha1 contains portable resource claims for compute services such as Kubernetes clusters. +kubebuilder:object:generate=true +groupName=compute.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type KubernetesCluster
- func (in *KubernetesCluster) DeepCopy() *KubernetesCluster
- func (in *KubernetesCluster) DeepCopyInto(out *KubernetesCluster)
- func (in *KubernetesCluster) DeepCopyObject() runtime.Object
- func (cm *KubernetesCluster) GetBindingPhase() runtimev1alpha1.BindingPhase
- func (cm *KubernetesCluster) GetClassReference() *corev1.ObjectReference
- func (cm *KubernetesCluster) GetClassSelector() *metav1.LabelSelector
- func (cm *KubernetesCluster) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (cm *KubernetesCluster) GetResourceReference() *corev1.ObjectReference
- func (cm *KubernetesCluster) GetWriteConnectionSecretToReference() *runtimev1alpha1.LocalSecretReference
- func (cm *KubernetesCluster) SetBindingPhase(p runtimev1alpha1.BindingPhase)
- func (cm *KubernetesCluster) SetClassReference(r *corev1.ObjectReference)
- func (cm *KubernetesCluster) SetClassSelector(s *metav1.LabelSelector)
- func (cm *KubernetesCluster) SetConditions(c ...runtimev1alpha1.Condition)
- func (cm *KubernetesCluster) SetResourceReference(r *corev1.ObjectReference)
- func (cm *KubernetesCluster) SetWriteConnectionSecretToReference(r *runtimev1alpha1.LocalSecretReference)
- type KubernetesClusterList
- type KubernetesClusterSpec
- type MachineInstance
- func (in *MachineInstance) DeepCopy() *MachineInstance
- func (in *MachineInstance) DeepCopyInto(out *MachineInstance)
- func (in *MachineInstance) DeepCopyObject() runtime.Object
- func (cm *MachineInstance) GetBindingPhase() runtimev1alpha1.BindingPhase
- func (cm *MachineInstance) GetClassReference() *corev1.ObjectReference
- func (cm *MachineInstance) GetClassSelector() *metav1.LabelSelector
- func (cm *MachineInstance) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (cm *MachineInstance) GetResourceReference() *corev1.ObjectReference
- func (cm *MachineInstance) GetWriteConnectionSecretToReference() *runtimev1alpha1.LocalSecretReference
- func (cm *MachineInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)
- func (cm *MachineInstance) SetClassReference(r *corev1.ObjectReference)
- func (cm *MachineInstance) SetClassSelector(s *metav1.LabelSelector)
- func (cm *MachineInstance) SetConditions(c ...runtimev1alpha1.Condition)
- func (cm *MachineInstance) SetResourceReference(r *corev1.ObjectReference)
- func (cm *MachineInstance) SetWriteConnectionSecretToReference(r *runtimev1alpha1.LocalSecretReference)
- type MachineInstanceList
- type MachineInstanceSpec
Constants ¶
const ( Group = "compute.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 ( KubernetesClusterKind = reflect.TypeOf(KubernetesCluster{}).Name() KubernetesClusterGroupKind = schema.GroupKind{Group: Group, Kind: KubernetesClusterKind}.String() KubernetesClusterKindAPIVersion = KubernetesClusterKind + "." + SchemeGroupVersion.String() KubernetesClusterGroupVersionKind = SchemeGroupVersion.WithKind(KubernetesClusterKind) )
KubernetesCluster type metadata.
var ( MachineInstanceKind = reflect.TypeOf(MachineInstance{}).Name() MachineInstanceGroupKind = schema.GroupKind{Group: Group, Kind: MachineInstanceKind}.String() MachineInstanceKindAPIVersion = MachineInstanceKind + "." + SchemeGroupVersion.String() MachineInstanceGroupVersionKind = SchemeGroupVersion.WithKind(MachineInstanceKind) )
MachineInstance type metadata.
Functions ¶
This section is empty.
Types ¶
type KubernetesCluster ¶
type KubernetesCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KubernetesClusterSpec `json:"spec,omitempty"` Status runtimev1alpha1.ResourceClaimStatus `json:"status,omitempty"` }
A KubernetesCluster is a portable resource claim that may be satisfied by binding to a Kubernetes cluster managed resource such as an AWS EKS cluster or an Azure AKS cluster. +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 (*KubernetesCluster) DeepCopy ¶
func (in *KubernetesCluster) DeepCopy() *KubernetesCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesCluster.
func (*KubernetesCluster) DeepCopyInto ¶
func (in *KubernetesCluster) DeepCopyInto(out *KubernetesCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubernetesCluster) DeepCopyObject ¶
func (in *KubernetesCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KubernetesCluster) GetBindingPhase ¶
func (cm *KubernetesCluster) GetBindingPhase() runtimev1alpha1.BindingPhase
GetBindingPhase of this KubernetesCluster.
func (*KubernetesCluster) GetClassReference ¶ added in v0.4.0
func (cm *KubernetesCluster) GetClassReference() *corev1.ObjectReference
GetClassReference of this KubernetesCluster.
func (*KubernetesCluster) GetClassSelector ¶ added in v0.4.0
func (cm *KubernetesCluster) GetClassSelector() *metav1.LabelSelector
GetClassSelector of this KubernetesCluster.
func (*KubernetesCluster) GetCondition ¶ added in v0.4.0
func (cm *KubernetesCluster) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
GetCondition of this KubernetesCluster.
func (*KubernetesCluster) GetResourceReference ¶
func (cm *KubernetesCluster) GetResourceReference() *corev1.ObjectReference
GetResourceReference of this KubernetesCluster.
func (*KubernetesCluster) GetWriteConnectionSecretToReference ¶
func (cm *KubernetesCluster) GetWriteConnectionSecretToReference() *runtimev1alpha1.LocalSecretReference
GetWriteConnectionSecretToReference of this KubernetesCluster.
func (*KubernetesCluster) SetBindingPhase ¶
func (cm *KubernetesCluster) SetBindingPhase(p runtimev1alpha1.BindingPhase)
SetBindingPhase of this KubernetesCluster.
func (*KubernetesCluster) SetClassReference ¶ added in v0.4.0
func (cm *KubernetesCluster) SetClassReference(r *corev1.ObjectReference)
SetClassReference of this KubernetesCluster.
func (*KubernetesCluster) SetClassSelector ¶ added in v0.4.0
func (cm *KubernetesCluster) SetClassSelector(s *metav1.LabelSelector)
SetClassSelector of this KubernetesCluster.
func (*KubernetesCluster) SetConditions ¶
func (cm *KubernetesCluster) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this KubernetesCluster.
func (*KubernetesCluster) SetResourceReference ¶
func (cm *KubernetesCluster) SetResourceReference(r *corev1.ObjectReference)
SetResourceReference of this KubernetesCluster.
func (*KubernetesCluster) SetWriteConnectionSecretToReference ¶
func (cm *KubernetesCluster) SetWriteConnectionSecretToReference(r *runtimev1alpha1.LocalSecretReference)
SetWriteConnectionSecretToReference of this KubernetesCluster.
type KubernetesClusterList ¶
type KubernetesClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KubernetesCluster `json:"items"` }
KubernetesClusterList contains a list of KubernetesCluster.
func (*KubernetesClusterList) DeepCopy ¶
func (in *KubernetesClusterList) DeepCopy() *KubernetesClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesClusterList.
func (*KubernetesClusterList) DeepCopyInto ¶
func (in *KubernetesClusterList) DeepCopyInto(out *KubernetesClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubernetesClusterList) DeepCopyObject ¶
func (in *KubernetesClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubernetesClusterSpec ¶
type KubernetesClusterSpec struct { runtimev1alpha1.ResourceClaimSpec `json:",inline"` // ClusterVersion specifies the desired Kubernetes version, e.g. 1.15. ClusterVersion string `json:"clusterVersion,omitempty"` }
KubernetesClusterSpec specifies the desired state of a KubernetesCluster.
func (*KubernetesClusterSpec) DeepCopy ¶
func (in *KubernetesClusterSpec) DeepCopy() *KubernetesClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesClusterSpec.
func (*KubernetesClusterSpec) DeepCopyInto ¶
func (in *KubernetesClusterSpec) DeepCopyInto(out *KubernetesClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineInstance ¶ added in v0.4.0
type MachineInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineInstanceSpec `json:"spec,omitempty"` Status runtimev1alpha1.ResourceClaimStatus `json:"status,omitempty"` }
A MachineInstance is a portable resource claim that may be satisfied by binding to a machine instance, which may include Virtual Machine managed resources such as an AWS EC2 instance or bare metal managed resources such as a Packet Device. +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 (*MachineInstance) DeepCopy ¶ added in v0.4.0
func (in *MachineInstance) DeepCopy() *MachineInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInstance.
func (*MachineInstance) DeepCopyInto ¶ added in v0.4.0
func (in *MachineInstance) DeepCopyInto(out *MachineInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineInstance) DeepCopyObject ¶ added in v0.4.0
func (in *MachineInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MachineInstance) GetBindingPhase ¶ added in v0.4.0
func (cm *MachineInstance) GetBindingPhase() runtimev1alpha1.BindingPhase
GetBindingPhase of this MachineInstance.
func (*MachineInstance) GetClassReference ¶ added in v0.4.0
func (cm *MachineInstance) GetClassReference() *corev1.ObjectReference
GetClassReference of this MachineInstance.
func (*MachineInstance) GetClassSelector ¶ added in v0.4.0
func (cm *MachineInstance) GetClassSelector() *metav1.LabelSelector
GetClassSelector of this MachineInstance.
func (*MachineInstance) GetCondition ¶ added in v0.4.0
func (cm *MachineInstance) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
GetCondition of this MachineInstance.
func (*MachineInstance) GetResourceReference ¶ added in v0.4.0
func (cm *MachineInstance) GetResourceReference() *corev1.ObjectReference
GetResourceReference of this MachineInstance.
func (*MachineInstance) GetWriteConnectionSecretToReference ¶ added in v0.4.0
func (cm *MachineInstance) GetWriteConnectionSecretToReference() *runtimev1alpha1.LocalSecretReference
GetWriteConnectionSecretToReference of this MachineInstance.
func (*MachineInstance) SetBindingPhase ¶ added in v0.4.0
func (cm *MachineInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)
SetBindingPhase of this MachineInstance.
func (*MachineInstance) SetClassReference ¶ added in v0.4.0
func (cm *MachineInstance) SetClassReference(r *corev1.ObjectReference)
SetClassReference of this MachineInstance.
func (*MachineInstance) SetClassSelector ¶ added in v0.4.0
func (cm *MachineInstance) SetClassSelector(s *metav1.LabelSelector)
SetClassSelector of this MachineInstance.
func (*MachineInstance) SetConditions ¶ added in v0.4.0
func (cm *MachineInstance) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this MachineInstance.
func (*MachineInstance) SetResourceReference ¶ added in v0.4.0
func (cm *MachineInstance) SetResourceReference(r *corev1.ObjectReference)
SetResourceReference of this MachineInstance.
func (*MachineInstance) SetWriteConnectionSecretToReference ¶ added in v0.4.0
func (cm *MachineInstance) SetWriteConnectionSecretToReference(r *runtimev1alpha1.LocalSecretReference)
SetWriteConnectionSecretToReference of this MachineInstance.
type MachineInstanceList ¶ added in v0.4.0
type MachineInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MachineInstance `json:"items"` }
MachineInstanceList contains a list of Instance.
func (*MachineInstanceList) DeepCopy ¶ added in v0.4.0
func (in *MachineInstanceList) DeepCopy() *MachineInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInstanceList.
func (*MachineInstanceList) DeepCopyInto ¶ added in v0.4.0
func (in *MachineInstanceList) DeepCopyInto(out *MachineInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineInstanceList) DeepCopyObject ¶ added in v0.4.0
func (in *MachineInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineInstanceSpec ¶ added in v0.4.0
type MachineInstanceSpec struct {
runtimev1alpha1.ResourceClaimSpec `json:",inline"`
}
MachineInstanceSpec specifies the desired state of a MachineInstance.
func (*MachineInstanceSpec) DeepCopy ¶ added in v0.4.0
func (in *MachineInstanceSpec) DeepCopy() *MachineInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInstanceSpec.
func (*MachineInstanceSpec) DeepCopyInto ¶ added in v0.4.0
func (in *MachineInstanceSpec) DeepCopyInto(out *MachineInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.