v1alpha1

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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

View Source
const (
	Group   = "compute.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
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}
)
View Source
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.

View Source
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

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

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL