sigs.k8s.io/cluster-api-provider-aws@v1.5.5/exp/api/v1beta1/conditions_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 const ( 22 // ASGReadyCondition reports on current status of the autoscaling group. Ready indicates the group is provisioned. 23 ASGReadyCondition clusterv1.ConditionType = "ASGReady" 24 // ASGNotFoundReason used when the autoscaling group couldn't be retrieved. 25 ASGNotFoundReason = "ASGNotFound" 26 // ASGProvisionFailedReason used for failures during autoscaling group provisioning. 27 ASGProvisionFailedReason = "ASGProvisionFailed" 28 // ASGDeletionInProgress ASG is in a deletion in progress state. 29 ASGDeletionInProgress = "ASGDeletionInProgress" 30 31 // LaunchTemplateReadyCondition represents the status of an AWSMachinePool's associated Launch Template. 32 LaunchTemplateReadyCondition clusterv1.ConditionType = "LaunchTemplateReady" 33 // LaunchTemplateNotFoundReason is used when an associated Launch Template can't be found. 34 LaunchTemplateNotFoundReason = "LaunchTemplateNotFound" 35 // LaunchTemplateCreateFailedReason used for failures during Launch Template creation. 36 LaunchTemplateCreateFailedReason = "LaunchTemplateCreateFailed" 37 38 // InstanceRefreshStartedCondition reports on successfully starting instance refresh. 39 InstanceRefreshStartedCondition clusterv1.ConditionType = "InstanceRefreshStarted" 40 // InstanceRefreshNotReadyReason used to report instance refresh is not initiated. 41 // If there are instance refreshes that are in progress, then a new instance refresh request will fail. 42 InstanceRefreshNotReadyReason = "InstanceRefreshNotReady" 43 // InstanceRefreshFailedReason used to report when there instance refresh is not initiated. 44 InstanceRefreshFailedReason = "InstanceRefreshFailed" 45 ) 46 47 const ( 48 // EKSNodegroupReadyCondition condition reports on the successful reconciliation of eks control plane. 49 EKSNodegroupReadyCondition clusterv1.ConditionType = "EKSNodegroupReady" 50 // EKSNodegroupReconciliationFailedReason used to report failures while reconciling EKS control plane. 51 EKSNodegroupReconciliationFailedReason = "EKSNodegroupReconciliationFailed" 52 // WaitingForEKSControlPlaneReason used when the machine pool is waiting for 53 // EKS control plane infrastructure to be ready before proceeding. 54 WaitingForEKSControlPlaneReason = "WaitingForEKSControlPlane" 55 ) 56 57 const ( 58 // EKSFargateProfileReadyCondition condition reports on the successful reconciliation of eks control plane. 59 EKSFargateProfileReadyCondition clusterv1.ConditionType = "EKSFargateProfileReady" 60 // EKSFargateCreatingCondition condition reports on whether the fargate 61 // profile is creating. 62 EKSFargateCreatingCondition clusterv1.ConditionType = "EKSFargateCreating" 63 // EKSFargateDeletingCondition used to report that the profile is deleting. 64 EKSFargateDeletingCondition = "EKSFargateDeleting" 65 // EKSFargateReconciliationFailedReason used to report failures while reconciling EKS control plane. 66 EKSFargateReconciliationFailedReason = "EKSFargateReconciliationFailed" 67 // EKSFargateDeletingReason used when the profile is deleting. 68 EKSFargateDeletingReason = "Deleting" 69 // EKSFargateCreatingReason used when the profile is creating. 70 EKSFargateCreatingReason = "Creating" 71 // EKSFargateCreatedReason used when the profile is created. 72 EKSFargateCreatedReason = "Created" 73 // EKSFargateDeletedReason used when the profile is deleted. 74 EKSFargateDeletedReason = "Deleted" 75 // EKSFargateFailedReason used when the profile failed. 76 EKSFargateFailedReason = "Failed" 77 ) 78 79 const ( 80 // IAMNodegroupRolesReadyCondition condition reports on the successful 81 // reconciliation of EKS nodegroup iam roles. 82 IAMNodegroupRolesReadyCondition clusterv1.ConditionType = "IAMNodegroupRolesReady" 83 // IAMNodegroupRolesReconciliationFailedReason used to report failures while 84 // reconciling EKS nodegroup iam roles. 85 IAMNodegroupRolesReconciliationFailedReason = "IAMNodegroupRolesReconciliationFailed" 86 // IAMFargateRolesReadyCondition condition reports on the successful 87 // reconciliation of EKS nodegroup iam roles. 88 IAMFargateRolesReadyCondition clusterv1.ConditionType = "IAMFargateRolesReady" 89 // IAMFargateRolesReconciliationFailedReason used to report failures while 90 // reconciling EKS nodegroup iam roles. 91 IAMFargateRolesReconciliationFailedReason = "IAMFargateRolesReconciliationFailed" 92 )