v1alpha3

package
v0.6.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: 11 Imported by: 0

Documentation

Overview

Package v1alpha3 contains managed resources for Azure compute services such as AKS. +kubebuilder:object:generate=true +groupName=compute.azure.crossplane.io +versionName=v1alpha3

Index

Constants

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

Package type metadata.

View Source
const (
	// ClusterProvisioningStateSucceeded is the state for a cluster that has
	// succeeded provisioning.
	ClusterProvisioningStateSucceeded = "Succeeded"

	// DefaultReclaimPolicy is the default reclaim policy to use.
	DefaultReclaimPolicy = runtimev1alpha1.ReclaimRetain

	// DefaultNodeCount is the default node count for a cluster.
	DefaultNodeCount = 1
)

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 (
	AKSClusterKind             = reflect.TypeOf(AKSCluster{}).Name()
	AKSClusterGroupKind        = schema.GroupKind{Group: Group, Kind: AKSClusterKind}.String()
	AKSClusterKindAPIVersion   = AKSClusterKind + "." + SchemeGroupVersion.String()
	AKSClusterGroupVersionKind = SchemeGroupVersion.WithKind(AKSClusterKind)
)

AKSCluster type metadata.

View Source
var (
	AKSClusterClassKind             = reflect.TypeOf(AKSClusterClass{}).Name()
	AKSClusterClassGroupKind        = schema.GroupKind{Group: Group, Kind: AKSClusterClassKind}.String()
	AKSClusterClassKindAPIVersion   = AKSClusterClassKind + "." + SchemeGroupVersion.String()
	AKSClusterClassGroupVersionKind = SchemeGroupVersion.WithKind(AKSClusterClassKind)
)

AKSClusterClass type metadata.

Functions

This section is empty.

Types

type AKSCluster

type AKSCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AKSClusterSpec   `json:"spec"`
	Status AKSClusterStatus `json:"status,omitempty"`
}

An AKSCluster is a managed resource that represents an Azure Kubernetes Engine cluster. +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.state" +kubebuilder:printcolumn:name="CLUSTER-NAME",type="string",JSONPath=".status.clusterName" +kubebuilder:printcolumn:name="ENDPOINT",type="string",JSONPath=".status.endpoint" +kubebuilder:printcolumn:name="CLUSTER-CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="LOCATION",type="string",JSONPath=".spec.location" +kubebuilder:printcolumn:name="RECLAIM-POLICY",type="string",JSONPath=".spec.reclaimPolicy" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster

func (*AKSCluster) DeepCopy

func (in *AKSCluster) DeepCopy() *AKSCluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSCluster.

func (*AKSCluster) DeepCopyInto

func (in *AKSCluster) DeepCopyInto(out *AKSCluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AKSCluster) DeepCopyObject

func (in *AKSCluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AKSCluster) GetBindingPhase

func (mg *AKSCluster) GetBindingPhase() runtimev1alpha1.BindingPhase

GetBindingPhase of this AKSCluster.

func (*AKSCluster) GetClaimReference

func (mg *AKSCluster) GetClaimReference() *corev1.ObjectReference

GetClaimReference of this AKSCluster.

func (*AKSCluster) GetClassReference

func (mg *AKSCluster) GetClassReference() *corev1.ObjectReference

GetClassReference of this AKSCluster.

func (*AKSCluster) GetCondition

GetCondition of this AKSCluster.

func (*AKSCluster) GetReclaimPolicy

func (mg *AKSCluster) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy

GetReclaimPolicy of this AKSCluster.

func (*AKSCluster) GetWriteConnectionSecretToReference

func (mg *AKSCluster) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference

GetWriteConnectionSecretToReference of this AKSCluster.

func (*AKSCluster) SetBindingPhase

func (mg *AKSCluster) SetBindingPhase(p runtimev1alpha1.BindingPhase)

SetBindingPhase of this AKSCluster.

func (*AKSCluster) SetClaimReference

func (mg *AKSCluster) SetClaimReference(r *corev1.ObjectReference)

SetClaimReference of this AKSCluster.

func (*AKSCluster) SetClassReference

func (mg *AKSCluster) SetClassReference(r *corev1.ObjectReference)

SetClassReference of this AKSCluster.

func (*AKSCluster) SetConditions

func (mg *AKSCluster) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this AKSCluster.

func (*AKSCluster) SetReclaimPolicy

func (mg *AKSCluster) SetReclaimPolicy(r runtimev1alpha1.ReclaimPolicy)

SetReclaimPolicy of this AKSCluster.

func (*AKSCluster) SetWriteConnectionSecretToReference

func (mg *AKSCluster) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)

SetWriteConnectionSecretToReference of this AKSCluster.

type AKSClusterClass

type AKSClusterClass struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// SpecTemplate is a template for the spec of a dynamically provisioned
	// AKSCluster.
	SpecTemplate AKSClusterClassSpecTemplate `json:"specTemplate"`
}

An AKSClusterClass is a non-portable resource class. It defines the desired spec of resource claims that use it to dynamically provision a managed resource. +kubebuilder:printcolumn:name="PROVIDER-REF",type="string",JSONPath=".specTemplate.providerRef.name" +kubebuilder:printcolumn:name="RECLAIM-POLICY",type="string",JSONPath=".specTemplate.reclaimPolicy" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster

func (*AKSClusterClass) DeepCopy

func (in *AKSClusterClass) DeepCopy() *AKSClusterClass

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSClusterClass.

func (*AKSClusterClass) DeepCopyInto

func (in *AKSClusterClass) DeepCopyInto(out *AKSClusterClass)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AKSClusterClass) DeepCopyObject

func (in *AKSClusterClass) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AKSClusterClass) GetReclaimPolicy

func (cs *AKSClusterClass) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy

GetReclaimPolicy of this AKSClusterClass.

func (*AKSClusterClass) SetReclaimPolicy

func (cs *AKSClusterClass) SetReclaimPolicy(r runtimev1alpha1.ReclaimPolicy)

SetReclaimPolicy of this AKSClusterClass.

type AKSClusterClassList

type AKSClusterClassList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AKSClusterClass `json:"items"`
}

AKSClusterClassList contains a list of cloud memorystore resource classes.

func (*AKSClusterClassList) DeepCopy

func (in *AKSClusterClassList) DeepCopy() *AKSClusterClassList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSClusterClassList.

func (*AKSClusterClassList) DeepCopyInto

func (in *AKSClusterClassList) DeepCopyInto(out *AKSClusterClassList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AKSClusterClassList) DeepCopyObject

func (in *AKSClusterClassList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AKSClusterClassSpecTemplate

type AKSClusterClassSpecTemplate struct {
	runtimev1alpha1.ClassSpecTemplate `json:",inline"`
	AKSClusterParameters              `json:",inline"`
}

An AKSClusterClassSpecTemplate is a template for the spec of a dynamically provisioned AKSCluster.

func (*AKSClusterClassSpecTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSClusterClassSpecTemplate.

func (*AKSClusterClassSpecTemplate) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AKSClusterList

type AKSClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AKSCluster `json:"items"`
}

AKSClusterList contains a list of AKSCluster.

func (*AKSClusterList) DeepCopy

func (in *AKSClusterList) DeepCopy() *AKSClusterList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSClusterList.

func (*AKSClusterList) DeepCopyInto

func (in *AKSClusterList) DeepCopyInto(out *AKSClusterList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AKSClusterList) DeepCopyObject

func (in *AKSClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AKSClusterParameters

type AKSClusterParameters struct {
	// ResourceGroupName is the name of the resource group that the cluster will
	// be created in
	ResourceGroupName string `json:"resourceGroupName,omitempty"`

	// ResourceGroupNameRef - A reference to a ResourceGroup object to retrieve
	// its name
	ResourceGroupNameRef *ResourceGroupNameReferencerForAKSCluster `json:"resourceGroupNameRef,omitempty" resource:"attributereferencer"`

	// Location is the Azure location that the cluster will be created in
	Location string `json:"location"`

	// Version is the Kubernetes version that will be deployed to the cluster
	Version string `json:"version"`

	// VnetSubnetID is the subnet to which the cluster will be deployed.
	// +optional
	VnetSubnetID string `json:"vnetSubnetID,omitempty"`

	// ResourceGroupNameRef - A reference to a VnetSubnet object to retrieve
	// its ID
	VnetSubnetIDRef *SubnetIDReferencerForAKSCluster `json:"vnetSubnetIDRef,omitempty" resource:"attributereferencer"`

	// NodeCount is the number of nodes that the cluster will initially be
	// created with.  This can be scaled over time and defaults to 1.
	// +kubebuilder:validation:Maximum=100
	// +kubebuilder:validation:Minimum=0
	// +optional
	NodeCount *int `json:"nodeCount,omitempty"`

	// NodeVMSize is the name of the worker node VM size, e.g., Standard_B2s,
	// Standard_F2s_v2, etc.
	// +optional
	NodeVMSize string `json:"nodeVMSize"`

	// DNSNamePrefix is the DNS name prefix to use with the hosted Kubernetes
	// API server FQDN. You will use this to connect to the Kubernetes API when
	// managing containers after creating the cluster.
	// +optional
	DNSNamePrefix string `json:"dnsNamePrefix"`

	// DisableRBAC determines whether RBAC will be disabled or enabled in the
	// cluster.
	// +optional
	DisableRBAC bool `json:"disableRBAC,omitempty"`

	// WriteServicePrincipalSecretTo the specified Secret. The service principal
	// is automatically generated and used by the AKS cluster to interact with
	// other Azure resources.
	WriteServicePrincipalSecretTo runtimev1alpha1.SecretReference `json:"writeServicePrincipalTo"`
}

AKSClusterParameters define the desired state of an Azure Kubernetes Engine cluster.

func (*AKSClusterParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSClusterParameters.

func (*AKSClusterParameters) DeepCopyInto

func (in *AKSClusterParameters) DeepCopyInto(out *AKSClusterParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AKSClusterSpec

type AKSClusterSpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	AKSClusterParameters         `json:",inline"`
}

An AKSClusterSpec defines the desired state of a AKSCluster.

func (*AKSClusterSpec) DeepCopy

func (in *AKSClusterSpec) DeepCopy() *AKSClusterSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSClusterSpec.

func (*AKSClusterSpec) DeepCopyInto

func (in *AKSClusterSpec) DeepCopyInto(out *AKSClusterSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AKSClusterStatus

type AKSClusterStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`

	// ClusterName is the name of the cluster as registered with the cloud
	// provider.
	ClusterName string `json:"clusterName,omitempty"`

	// State is the current state of the cluster.
	State string `json:"state,omitempty"`

	// ProviderID is the external ID to identify this resource in the cloud
	// provider.
	ProviderID string `json:"providerID,omitempty"`

	// Endpoint is the endpoint where the cluster can be reached
	Endpoint string `json:"endpoint"`

	// ApplicationObjectID is the object ID of the AD application the cluster
	// uses for Azure APIs.
	ApplicationObjectID string `json:"appObjectID,omitempty"`

	// ServicePrincipalID is the ID of the service principal the AD application
	// uses.
	ServicePrincipalID string `json:"servicePrincipalID,omitempty"`

	// RunningOperation stores any current long running operation for this
	// instance across reconciliation attempts.
	RunningOperation string `json:"runningOperation,omitempty"`
}

An AKSClusterStatus represents the observed state of an AKSCluster.

func (*AKSClusterStatus) DeepCopy

func (in *AKSClusterStatus) DeepCopy() *AKSClusterStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSClusterStatus.

func (*AKSClusterStatus) DeepCopyInto

func (in *AKSClusterStatus) DeepCopyInto(out *AKSClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceGroupNameReferencerForAKSCluster

type ResourceGroupNameReferencerForAKSCluster struct {
	apisv1alpha3.ResourceGroupNameReferencer `json:",inline"`
}

ResourceGroupNameReferencerForAKSCluster is an attribute referencer that resolves name from a referenced ResourceGroup

func (*ResourceGroupNameReferencerForAKSCluster) Assign

Assign assigns the retrieved group name to the managed resource

func (*ResourceGroupNameReferencerForAKSCluster) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceGroupNameReferencerForAKSCluster.

func (*ResourceGroupNameReferencerForAKSCluster) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SubnetIDReferencerForAKSCluster

type SubnetIDReferencerForAKSCluster struct {
	networkv1alpha3.SubnetIDReferencer `json:",inline"`
}

SubnetIDReferencerForAKSCluster is an attribute referencer that resolves name from a referenced ResourceGroup

func (*SubnetIDReferencerForAKSCluster) Assign

Assign assigns the retrieved group name to the managed resource

func (*SubnetIDReferencerForAKSCluster) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetIDReferencerForAKSCluster.

func (*SubnetIDReferencerForAKSCluster) DeepCopyInto

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
JackTT - Gopher 🇻🇳