sigs.k8s.io/cluster-api-provider-azure@v1.14.3/api/v1beta1/consts.go (about)

     1  /*
     2  Copyright 2021 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package v1beta1
    18  
    19  import clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
    20  
    21  // AzureCluster Conditions and Reasons.
    22  const (
    23  	// NetworkInfrastructureReadyCondition reports of current status of cluster infrastructure.
    24  	NetworkInfrastructureReadyCondition clusterv1.ConditionType = "NetworkInfrastructureReady"
    25  	// NamespaceNotAllowedByIdentity used to indicate cluster in a namespace not allowed by identity.
    26  	NamespaceNotAllowedByIdentity = "NamespaceNotAllowedByIdentity"
    27  )
    28  
    29  // AzureMachine Conditions and Reasons.
    30  const (
    31  	// VMRunningCondition reports on current status of the Azure VM.
    32  	VMRunningCondition clusterv1.ConditionType = "VMRunning"
    33  	// VMIdentitiesReadyCondition reports on the readiness of the Azure VM identities.
    34  	VMIdentitiesReadyCondition clusterv1.ConditionType = "VMIdentitiesReady"
    35  	// VMCreatingReason used when the vm creation is in progress.
    36  	VMCreatingReason = "VMCreating"
    37  	// VMUpdatingReason used when the vm updating is in progress.
    38  	VMUpdatingReason = "VMUpdating"
    39  	// VMDeletingReason used when the vm is in a deleting state.
    40  	VMDeletingReason = "VMDeleting"
    41  	// VMProvisionFailedReason used for failures during vm provisioning.
    42  	VMProvisionFailedReason = "VMProvisionFailed"
    43  	// UserAssignedIdentityMissingReason used for failures when a user-assigned identity is missing.
    44  	UserAssignedIdentityMissingReason = "UserAssignedIdentityMissing"
    45  	// WaitingForClusterInfrastructureReason used when machine is waiting for cluster infrastructure to be ready before proceeding.
    46  	WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure"
    47  	// WaitingForBootstrapDataReason used when machine is waiting for bootstrap data to be ready before proceeding.
    48  	WaitingForBootstrapDataReason = "WaitingForBootstrapData"
    49  	// BootstrapSucceededCondition reports the result of the execution of the bootstrap data on the machine.
    50  	BootstrapSucceededCondition clusterv1.ConditionType = "BootstrapSucceeded"
    51  	// BootstrapInProgressReason is used to indicate the bootstrap data has not finished executing.
    52  	BootstrapInProgressReason = "BootstrapInProgress"
    53  	// BootstrapFailedReason is used to indicate the bootstrap process ran into an error.
    54  	BootstrapFailedReason = "BootstrapFailed"
    55  )
    56  
    57  // AzureMachinePool Conditions and Reasons.
    58  const (
    59  	// ScaleSetRunningCondition reports on current status of the Azure Scale Set.
    60  	ScaleSetRunningCondition clusterv1.ConditionType = "ScaleSetRunning"
    61  	// ScaleSetCreatingReason used when the scale set creation is in progress.
    62  	ScaleSetCreatingReason = "ScaleSetCreating"
    63  	// ScaleSetUpdatingReason used when the scale set updating is in progress.
    64  	ScaleSetUpdatingReason = "ScaleSetUpdating"
    65  	// ScaleSetDeletingReason used when the scale set is in a deleting state.
    66  	ScaleSetDeletingReason = "ScaleSetDeleting"
    67  	// ScaleSetProvisionFailedReason used for failures during scale set provisioning.
    68  	ScaleSetProvisionFailedReason = "ScaleSetProvisionFailed"
    69  
    70  	// ScaleSetDesiredReplicasCondition reports on the scaling state of the machine pool.
    71  	ScaleSetDesiredReplicasCondition clusterv1.ConditionType = "ScaleSetDesiredReplicas"
    72  	// ScaleSetScaleUpReason describes the machine pool scaling up.
    73  	ScaleSetScaleUpReason = "ScaleSetScalingUp"
    74  	// ScaleSetScaleDownReason describes the machine pool scaling down.
    75  	ScaleSetScaleDownReason = "ScaleSetScalingDown"
    76  
    77  	// ScaleSetModelUpdatedCondition reports on the model state of the pool.
    78  	ScaleSetModelUpdatedCondition clusterv1.ConditionType = "ScaleSetModelUpdated"
    79  	// ScaleSetModelOutOfDateReason describes the machine pool model being out of date.
    80  	ScaleSetModelOutOfDateReason = "ScaleSetModelOutOfDate"
    81  )
    82  
    83  // AzureManagedCluster Conditions and Reasons.
    84  const (
    85  	// ManagedClusterRunningCondition means the AKS cluster exists and is in a running state.
    86  	ManagedClusterRunningCondition clusterv1.ConditionType = "ManagedClusterRunning"
    87  	// AgentPoolsReadyCondition means the AKS agent pools exist and are ready to be used.
    88  	AgentPoolsReadyCondition clusterv1.ConditionType = "AgentPoolsReady"
    89  	// AzureResourceAvailableCondition means the AKS cluster is healthy according to Azure's Resource Health API.
    90  	AzureResourceAvailableCondition clusterv1.ConditionType = "AzureResourceAvailable"
    91  )
    92  
    93  // Azure Services Conditions and Reasons.
    94  const (
    95  	// ResourceGroupReadyCondition means the resource group exists and is ready to be used.
    96  	ResourceGroupReadyCondition clusterv1.ConditionType = "ResourceGroupReady"
    97  	// VNetReadyCondition means the virtual network exists and is ready to be used.
    98  	VNetReadyCondition clusterv1.ConditionType = "VNetReady"
    99  	// VnetPeeringReadyCondition means the virtual network peerings exist and are ready to be used.
   100  	VnetPeeringReadyCondition clusterv1.ConditionType = "VnetPeeringReady"
   101  	// SecurityGroupsReadyCondition means the security groups exist and are ready to be used.
   102  	SecurityGroupsReadyCondition clusterv1.ConditionType = "SecurityGroupsReady"
   103  	// RouteTablesReadyCondition means the route tables exist and are ready to be used.
   104  	RouteTablesReadyCondition clusterv1.ConditionType = "RouteTablesReady"
   105  	// PublicIPsReadyCondition means the public IPs exist and are ready to be used.
   106  	PublicIPsReadyCondition clusterv1.ConditionType = "PublicIPsReady"
   107  	// NATGatewaysReadyCondition means the NAT gateways exist and are ready to be used.
   108  	NATGatewaysReadyCondition clusterv1.ConditionType = "NATGatewaysReady"
   109  	// SubnetsReadyCondition means the subnets exist and are ready to be used.
   110  	SubnetsReadyCondition clusterv1.ConditionType = "SubnetsReady"
   111  	// LoadBalancersReadyCondition means the load balancers exist and are ready to be used.
   112  	LoadBalancersReadyCondition clusterv1.ConditionType = "LoadBalancersReady"
   113  	// PrivateDNSZoneReadyCondition means the private DNS zone exists and is ready to be used.
   114  	PrivateDNSZoneReadyCondition clusterv1.ConditionType = "PrivateDNSZoneReady"
   115  	// PrivateDNSLinkReadyCondition means the private DNS links exist and are ready to be used.
   116  	PrivateDNSLinkReadyCondition clusterv1.ConditionType = "PrivateDNSLinkReady"
   117  	// PrivateDNSRecordReadyCondition means the private DNS records exist and are ready to be used.
   118  	PrivateDNSRecordReadyCondition clusterv1.ConditionType = "PrivateDNSRecordReady"
   119  	// BastionHostReadyCondition means the bastion host exists and is ready to be used.
   120  	BastionHostReadyCondition clusterv1.ConditionType = "BastionHostReady"
   121  	// InboundNATRulesReadyCondition means the inbound NAT rules exist and are ready to be used.
   122  	InboundNATRulesReadyCondition clusterv1.ConditionType = "InboundNATRulesReady"
   123  	// AvailabilitySetReadyCondition means the availability set exists and is ready to be used.
   124  	AvailabilitySetReadyCondition clusterv1.ConditionType = "AvailabilitySetReady"
   125  	// RoleAssignmentReadyCondition means the role assignment exists and is ready to be used.
   126  	RoleAssignmentReadyCondition clusterv1.ConditionType = "RoleAssignmentReady"
   127  	// DisksReadyCondition means the disks exist and are ready to be used.
   128  	DisksReadyCondition clusterv1.ConditionType = "DisksReady"
   129  	// NetworkInterfaceReadyCondition means the network interfaces exist and are ready to be used.
   130  	NetworkInterfaceReadyCondition clusterv1.ConditionType = "NetworkInterfacesReady"
   131  	// PrivateEndpointsReadyCondition means the private endpoints exist and are ready to be used.
   132  	PrivateEndpointsReadyCondition clusterv1.ConditionType = "PrivateEndpointsReady"
   133  	// FleetReadyCondition means the Fleet exists and is ready to be used.
   134  	FleetReadyCondition clusterv1.ConditionType = "FleetReady"
   135  	// AKSExtensionsReadyCondition means the AKS Extensions exist and are ready to be used.
   136  	AKSExtensionsReadyCondition clusterv1.ConditionType = "AKSExtensionsReady"
   137  
   138  	// CreatingReason means the resource is being created.
   139  	CreatingReason = "Creating"
   140  	// FailedReason means the resource failed to be created.
   141  	FailedReason = "Failed"
   142  	// DeletingReason means the resource is being deleted.
   143  	DeletingReason = "Deleting"
   144  	// DeletedReason means the resource was deleted.
   145  	DeletedReason = "Deleted"
   146  	// DeletionFailedReason means the resource failed to be deleted.
   147  	DeletionFailedReason = "DeletionFailed"
   148  	// UpdatingReason means the resource is being updated.
   149  	UpdatingReason = "Updating"
   150  )
   151  
   152  const (
   153  	// LinuxOS is Linux OS value for OSDisk.OSType.
   154  	LinuxOS = "Linux"
   155  	// WindowsOS is Windows OS value for OSDisk.OSType.
   156  	WindowsOS = "Windows"
   157  )
   158  
   159  const (
   160  	// OwnedByClusterLabelKey communicates CAPZ's ownership of an ASO resource
   161  	// independently of its ownership of the underlying Azure resource. The
   162  	// value for the label is the CAPI Cluster Name.
   163  	//
   164  	// Deprecated: OwnerReferences now determine ownership.
   165  	OwnedByClusterLabelKey = NameAzureProviderPrefix + string(ResourceLifecycleOwned)
   166  )
   167  
   168  const (
   169  	// AzureNetworkPluginName is the name of the Azure network plugin.
   170  	AzureNetworkPluginName = "azure"
   171  )
   172  
   173  const (
   174  	// AzureClusterKind indicates the kind of an AzureCluster.
   175  	AzureClusterKind = "AzureCluster"
   176  	// AzureClusterTemplateKind indicates the kind of an AzureClusterTemplate.
   177  	AzureClusterTemplateKind = "AzureClusterTemplate"
   178  	// AzureMachineKind indicates the kind of an AzureMachine.
   179  	AzureMachineKind = "AzureMachine"
   180  	// AzureMachineTemplateKind indicates the kind of an AzureMachineTemplate.
   181  	AzureMachineTemplateKind = "AzureMachineTemplate"
   182  	// AzureMachinePoolKind indicates the kind of an AzureMachinePool.
   183  	AzureMachinePoolKind = "AzureMachinePool"
   184  	// AzureManagedMachinePoolKind indicates the kind of an AzureManagedMachinePool.
   185  	AzureManagedMachinePoolKind = "AzureManagedMachinePool"
   186  	// AzureManagedClusterKind indicates the kind of an AzureManagedCluster.
   187  	AzureManagedClusterKind = "AzureManagedCluster"
   188  	// AzureManagedControlPlaneKind indicates the kind of an AzureManagedControlPlane.
   189  	AzureManagedControlPlaneKind = "AzureManagedControlPlane"
   190  	// AzureManagedControlPlaneTemplateKind indicates the kind of an AzureManagedControlPlaneTemplate.
   191  	AzureManagedControlPlaneTemplateKind = "AzureManagedControlPlaneTemplate"
   192  	// AzureManagedMachinePoolTemplateKind indicates the kind of an AzureManagedMachinePoolTemplate.
   193  	AzureManagedMachinePoolTemplateKind = "AzureManagedMachinePoolTemplate"
   194  	// AzureClusterIdentityKind indicates the kind of an AzureClusterIdentity.
   195  	AzureClusterIdentityKind = "AzureClusterIdentity"
   196  )