v1alpha3

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 13 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 (
	// 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.

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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="ENDPOINT",type="string",JSONPath=".status.endpoint" +kubebuilder:printcolumn:name="LOCATION",type="string",JSONPath=".spec.location" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +kubebuilder:subresource:status

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) GetCondition

func (mg *AKSCluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this AKSCluster.

func (*AKSCluster) GetDeletionPolicy

func (mg *AKSCluster) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this AKSCluster.

func (*AKSCluster) GetProviderConfigReference

func (mg *AKSCluster) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this AKSCluster.

func (*AKSCluster) GetProviderReference

func (mg *AKSCluster) GetProviderReference() *xpv1.Reference

GetProviderReference of this AKSCluster. Deprecated: Use GetProviderConfigReference.

func (*AKSCluster) GetPublishConnectionDetailsTo

func (mg *AKSCluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this AKSCluster.

func (*AKSCluster) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this AKSCluster.

func (*AKSCluster) ResolveReferences

func (mg *AKSCluster) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this AKSCluster.

func (*AKSCluster) SetConditions

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

SetConditions of this AKSCluster.

func (*AKSCluster) SetDeletionPolicy

func (mg *AKSCluster) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this AKSCluster.

func (*AKSCluster) SetProviderConfigReference

func (mg *AKSCluster) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this AKSCluster.

func (*AKSCluster) SetProviderReference

func (mg *AKSCluster) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this AKSCluster. Deprecated: Use SetProviderConfigReference.

func (*AKSCluster) SetPublishConnectionDetailsTo

func (mg *AKSCluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this AKSCluster.

func (*AKSCluster) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this AKSCluster.

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.

func (*AKSClusterList) GetItems

func (l *AKSClusterList) GetItems() []resource.Managed

GetItems of this AKSClusterList.

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 to retrieve its
	// name
	ResourceGroupNameRef *xpv1.Reference `json:"resourceGroupNameRef,omitempty"`

	// ResourceGroupNameSelector - Select a reference to a ResourceGroup to
	// retrieve its name
	ResourceGroupNameSelector *xpv1.Selector `json:"resourceGroupNameSelector,omitempty"`

	// 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"`

	// VnetSubnetIDRef - A reference to a Subnet to retrieve its ID
	VnetSubnetIDRef *xpv1.Reference `json:"vnetSubnetIDRef,omitempty"`

	// VnetSubnetIDSelector - Select a reference to a Subnet to retrieve
	// its ID
	VnetSubnetIDSelector *xpv1.Selector `json:"vnetSubnetIDSelector,omitempty"`

	// 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"`
}

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 {
	xpv1.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 {
	xpv1.ResourceStatus `json:",inline"`

	// 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,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.

Jump to

Keyboard shortcuts

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