Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the container v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/crossplane/pkg/apis/azure/compute +k8s:defaulter-gen=TypeMeta +groupName=compute.azure.crossplane.io
Package v1alpha1 contains API Schema definitions for the container v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/crossplane/pkg/azure/apis/azure/compute +k8s:defaulter-gen=TypeMeta +groupName=compute.azure.crossplane.io
Index ¶
- Constants
- Variables
- type AKSCluster
- func (a *AKSCluster) ConnectionSecret() *corev1.Secret
- func (a *AKSCluster) ConnectionSecretName() string
- func (in *AKSCluster) DeepCopy() *AKSCluster
- func (in *AKSCluster) DeepCopyInto(out *AKSCluster)
- func (in *AKSCluster) DeepCopyObject() runtime.Object
- func (a *AKSCluster) Endpoint() string
- func (a *AKSCluster) IsAvailable() bool
- func (a *AKSCluster) IsBound() bool
- func (a *AKSCluster) ObjectReference() *corev1.ObjectReference
- func (a *AKSCluster) OwnerReference() metav1.OwnerReference
- func (a *AKSCluster) SetBound(state bool)
- func (a *AKSCluster) State() string
- type AKSClusterList
- type AKSClusterSpec
- type AKSClusterStatus
Constants ¶
const ( // Group is the API Group for these resources Group = "compute.azure.crossplane.io" // Version is the version of the API group Version = "v1alpha1" // APIVersion is the full version of this API group APIVersion = Group + "/" + Version // AKSClusterKind is the kind for the AKS cluster resource AKSClusterKind = "akscluster" // AKSClusterKindAPIVersion is the full kind and version for the AKS cluster resource AKSClusterKindAPIVersion = AKSClusterKind + "." + APIVersion )
const ( // ClusterProvisioningStateSucceeded is the state for a cluster that has succeeded provisioning ClusterProvisioningStateSucceeded = "Succeeded" // DefaultReclaimPolicy is the default reclaim policy to use DefaultReclaimPolicy = corev1alpha1.ReclaimRetain // DefaultNodeCount is the default node count for a cluster DefaultNodeCount = 1 )
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} )
Functions ¶
This section is empty.
Types ¶
type AKSCluster ¶
type AKSCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AKSClusterSpec `json:"spec,omitempty"` Status AKSClusterStatus `json:"status,omitempty"` }
AKSCluster is the Schema for the instances API +k8s:openapi-gen=true +groupName=compute.azure
func (*AKSCluster) ConnectionSecret ¶
func (a *AKSCluster) ConnectionSecret() *corev1.Secret
ConnectionSecret returns a secret object for this resource
func (*AKSCluster) ConnectionSecretName ¶
func (a *AKSCluster) ConnectionSecretName() string
ConnectionSecretName returns a secret name from the reference
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) Endpoint ¶
func (a *AKSCluster) Endpoint() string
Endpoint returns the current endpoint of this resource
func (*AKSCluster) IsAvailable ¶
func (a *AKSCluster) IsAvailable() bool
IsAvailable for usage/binding
func (*AKSCluster) IsBound ¶
func (a *AKSCluster) IsBound() bool
IsBound returns if the resource is currently bound
func (*AKSCluster) ObjectReference ¶
func (a *AKSCluster) ObjectReference() *corev1.ObjectReference
ObjectReference to this instance
func (*AKSCluster) OwnerReference ¶
func (a *AKSCluster) OwnerReference() metav1.OwnerReference
OwnerReference to use this instance as an owner
func (*AKSCluster) SetBound ¶
func (a *AKSCluster) SetBound(state bool)
SetBound sets the binding state of this resource
func (*AKSCluster) State ¶
func (a *AKSCluster) State() string
State returns instance state value saved in the status (could be empty)
type AKSClusterList ¶
type AKSClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AKSCluster `json:"items"` }
AKSClusterList contains a list of AKSCluster items
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 AKSClusterSpec ¶
type AKSClusterSpec struct { // ResourceGroupName is the name of the resource group that the cluster will be created in ResourceGroupName string `json:"resourceGroupName"` //--resource-group // Location is the Azure location that the cluster will be created in Location string `json:"location"` //--location // Version is the Kubernetes version that will be deployed to the cluster Version string `json:"version"` //--kubernetes-version // 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 NodeCount *int `json:"nodeCount,omitempty"` //--node-count // NodeVMSize is the name of the worker node VM size, e.g., Standard_B2s, Standard_F2s_v2, etc. // This value cannot be changed after cluster creation. NodeVMSize string `json:"nodeVMSize"` //--node-vm-size // 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. DNSNamePrefix string `json:"dnsNamePrefix"` //--dns-name-prefix // DisableRBAC determines whether RBAC will be disabled or enabled in the cluster. DisableRBAC bool `json:"disableRBAC,omitempty"` //--disable-rbac // Kubernetes object references ClaimRef *corev1.ObjectReference `json:"claimRef,omitempty"` ClassRef *corev1.ObjectReference `json:"classRef,omitempty"` ConnectionSecretRef *corev1.LocalObjectReference `json:"connectionSecretRef,omitempty"` ProviderRef corev1.LocalObjectReference `json:"providerRef,omitempty"` // ReclaimPolicy identifies how to handle the cloud resource after the deletion of this type ReclaimPolicy corev1alpha1.ReclaimPolicy `json:"reclaimPolicy,omitempty"` }
AKSClusterSpec is the spec for AKS cluster resources
func NewAKSClusterSpec ¶
func NewAKSClusterSpec(properties map[string]string) *AKSClusterSpec
NewAKSClusterSpec creates a new AKSClusterSpec based on the given properties map
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 { corev1alpha1.ConditionedStatus corev1alpha1.BindingStatusPhase // 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. This will be a serialized Azure AKS cluster API object that will // be used to check the status and completion of the operation during each reconciliation. // Once the operation has completed, this field will be cleared out. RunningOperation string `json:"runningOperation,omitempty"` }
AKSClusterStatus is the status for AKS cluster resources
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.