sigs.k8s.io/cluster-api@v1.7.1/internal/apis/controlplane/kubeadm/v1alpha4/condition_consts.go (about) 1 /* 2 Copyright 2020 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 v1alpha4 18 19 import clusterv1alpha4 "sigs.k8s.io/cluster-api/internal/apis/core/v1alpha4" 20 21 // Conditions and condition Reasons for the KubeadmControlPlane object. 22 23 const ( 24 // MachinesReadyCondition reports an aggregate of current status of the machines controlled by the KubeadmControlPlane. 25 MachinesReadyCondition clusterv1alpha4.ConditionType = "MachinesReady" 26 ) 27 28 const ( 29 // CertificatesAvailableCondition documents that cluster certificates were generated as part of the 30 // processing of a KubeadmControlPlane object. 31 CertificatesAvailableCondition clusterv1alpha4.ConditionType = "CertificatesAvailable" 32 33 // CertificatesGenerationFailedReason (Severity=Warning) documents a KubeadmControlPlane controller detecting 34 // an error while generating certificates; those kind of errors are usually temporary and the controller 35 // automatically recover from them. 36 CertificatesGenerationFailedReason = "CertificatesGenerationFailed" 37 ) 38 39 const ( 40 // AvailableCondition documents that the first control plane instance has completed the kubeadm init operation 41 // and so the control plane is available and an API server instance is ready for processing requests. 42 AvailableCondition clusterv1alpha4.ConditionType = "Available" 43 44 // WaitingForKubeadmInitReason (Severity=Info) documents a KubeadmControlPlane object waiting for the first 45 // control plane instance to complete the kubeadm init operation. 46 WaitingForKubeadmInitReason = "WaitingForKubeadmInit" 47 ) 48 49 const ( 50 // MachinesSpecUpToDateCondition documents that the spec of the machines controlled by the KubeadmControlPlane 51 // is up to date. When this condition is false, the KubeadmControlPlane is executing a rolling upgrade. 52 MachinesSpecUpToDateCondition clusterv1alpha4.ConditionType = "MachinesSpecUpToDate" 53 54 // RollingUpdateInProgressReason (Severity=Warning) documents a KubeadmControlPlane object executing a 55 // rolling upgrade for aligning the machines spec to the desired state. 56 RollingUpdateInProgressReason = "RollingUpdateInProgress" 57 ) 58 59 const ( 60 // ResizedCondition documents a KubeadmControlPlane that is resizing the set of controlled machines. 61 ResizedCondition clusterv1alpha4.ConditionType = "Resized" 62 63 // ScalingUpReason (Severity=Info) documents a KubeadmControlPlane that is increasing the number of replicas. 64 ScalingUpReason = "ScalingUp" 65 66 // ScalingDownReason (Severity=Info) documents a KubeadmControlPlane that is decreasing the number of replicas. 67 ScalingDownReason = "ScalingDown" 68 ) 69 70 const ( 71 // ControlPlaneComponentsHealthyCondition reports the overall status of control plane components 72 // implemented as static pods generated by kubeadm including kube-api-server, kube-controller manager, 73 // kube-scheduler and etcd if managed. 74 ControlPlaneComponentsHealthyCondition clusterv1alpha4.ConditionType = "ControlPlaneComponentsHealthy" 75 76 // ControlPlaneComponentsUnhealthyReason (Severity=Error) documents a control plane component not healthy. 77 ControlPlaneComponentsUnhealthyReason = "ControlPlaneComponentsUnhealthy" 78 79 // ControlPlaneComponentsUnknownReason reports a control plane component in unknown status. 80 ControlPlaneComponentsUnknownReason = "ControlPlaneComponentsUnknown" 81 82 // ControlPlaneComponentsInspectionFailedReason documents a failure in inspecting the control plane component status. 83 ControlPlaneComponentsInspectionFailedReason = "ControlPlaneComponentsInspectionFailed" 84 85 // MachineAPIServerPodHealthyCondition reports a machine's kube-apiserver's operational status. 86 MachineAPIServerPodHealthyCondition clusterv1alpha4.ConditionType = "APIServerPodHealthy" 87 88 // MachineControllerManagerPodHealthyCondition reports a machine's kube-controller-manager's health status. 89 MachineControllerManagerPodHealthyCondition clusterv1alpha4.ConditionType = "ControllerManagerPodHealthy" 90 91 // MachineSchedulerPodHealthyCondition reports a machine's kube-scheduler's operational status. 92 MachineSchedulerPodHealthyCondition clusterv1alpha4.ConditionType = "SchedulerPodHealthy" 93 94 // MachineEtcdPodHealthyCondition reports a machine's etcd pod's operational status. 95 // NOTE: This conditions exists only if a stacked etcd cluster is used. 96 MachineEtcdPodHealthyCondition clusterv1alpha4.ConditionType = "EtcdPodHealthy" 97 98 // PodProvisioningReason (Severity=Info) documents a pod waiting to be provisioned i.e., Pod is in "Pending" phase. 99 PodProvisioningReason = "PodProvisioning" 100 101 // PodMissingReason (Severity=Error) documents a pod does not exist. 102 PodMissingReason = "PodMissing" 103 104 // PodFailedReason (Severity=Error) documents if a pod failed during provisioning i.e., e.g CrashLoopbackOff, ImagePullBackOff 105 // or if all the containers in a pod have terminated. 106 PodFailedReason = "PodFailed" 107 108 // PodInspectionFailedReason documents a failure in inspecting the pod status. 109 PodInspectionFailedReason = "PodInspectionFailed" 110 ) 111 112 const ( 113 // EtcdClusterHealthyCondition documents the overall etcd cluster's health. 114 EtcdClusterHealthyCondition clusterv1alpha4.ConditionType = "EtcdClusterHealthyCondition" 115 116 // EtcdClusterInspectionFailedReason documents a failure in inspecting the etcd cluster status. 117 EtcdClusterInspectionFailedReason = "EtcdClusterInspectionFailed" 118 119 // EtcdClusterUnknownReason reports an etcd cluster in unknown status. 120 EtcdClusterUnknownReason = "EtcdClusterUnknown" 121 122 // EtcdClusterUnhealthyReason (Severity=Error) is set when the etcd cluster is unhealthy. 123 EtcdClusterUnhealthyReason = "EtcdClusterUnhealthy" 124 125 // MachineEtcdMemberHealthyCondition report the machine's etcd member's health status. 126 // NOTE: This conditions exists only if a stacked etcd cluster is used. 127 MachineEtcdMemberHealthyCondition clusterv1alpha4.ConditionType = "EtcdMemberHealthy" 128 129 // EtcdMemberInspectionFailedReason documents a failure in inspecting the etcd member status. 130 EtcdMemberInspectionFailedReason = "MemberInspectionFailed" 131 132 // EtcdMemberUnhealthyReason (Severity=Error) documents a Machine's etcd member is unhealthy. 133 EtcdMemberUnhealthyReason = "EtcdMemberUnhealthy" 134 135 // MachinesCreatedCondition documents that the machines controlled by the KubeadmControlPlane are created. 136 // When this condition is false, it indicates that there was an error when cloning the infrastructure/bootstrap template or 137 // when generating the machine object. 138 MachinesCreatedCondition clusterv1alpha4.ConditionType = "MachinesCreated" 139 140 // InfrastructureTemplateCloningFailedReason (Severity=Error) documents a KubeadmControlPlane failing to 141 // clone the infrastructure template. 142 InfrastructureTemplateCloningFailedReason = "InfrastructureTemplateCloningFailed" 143 144 // BootstrapTemplateCloningFailedReason (Severity=Error) documents a KubeadmControlPlane failing to 145 // clone the bootstrap template. 146 BootstrapTemplateCloningFailedReason = "BootstrapTemplateCloningFailed" 147 148 // MachineGenerationFailedReason (Severity=Error) documents a KubeadmControlPlane failing to 149 // generate a machine object. 150 MachineGenerationFailedReason = "MachineGenerationFailed" 151 )