sigs.k8s.io/cluster-api@v1.7.1/internal/apis/bootstrap/kubeadm/v1alpha3/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 v1alpha3 18 19 import clusterv1alpha3 "sigs.k8s.io/cluster-api/internal/apis/core/v1alpha3" 20 21 // Conditions and condition Reasons for the KubeadmConfig object. 22 23 const ( 24 // DataSecretAvailableCondition documents the status of the bootstrap secret generation process. 25 // 26 // NOTE: When the DataSecret generation starts the process completes immediately and within the 27 // same reconciliation, so the user will always see a transition from Wait to Generated without having 28 // evidence that BootstrapSecret generation is started/in progress. 29 DataSecretAvailableCondition clusterv1alpha3.ConditionType = "DataSecretAvailable" 30 31 // WaitingForClusterInfrastructureReason (Severity=Info) document a bootstrap secret generation process 32 // waiting for the cluster infrastructure to be ready. 33 // 34 // NOTE: Having the cluster infrastructure ready is a pre-condition for starting to create machines; 35 // the KubeadmConfig controller ensure this pre-condition is satisfied. 36 WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure" 37 38 // WaitingForControlPlaneAvailableReason (Severity=Info) document a bootstrap secret generation process 39 // waiting for the control plane machine to be available. 40 // 41 // NOTE: Having the control plane machine available is a pre-condition for joining additional control planes 42 // or workers nodes. 43 WaitingForControlPlaneAvailableReason = "WaitingForControlPlaneAvailable" 44 45 // DataSecretGenerationFailedReason (Severity=Warning) documents a KubeadmConfig controller detecting 46 // an error while generating a data secret; those kind of errors are usually due to misconfigurations 47 // and user intervention is required to get them fixed. 48 DataSecretGenerationFailedReason = "DataSecretGenerationFailed" 49 ) 50 51 const ( 52 // CertificatesAvailableCondition documents that cluster certificates are available. 53 // 54 // NOTE: Cluster certificates are generated only for the KubeadmConfig object linked to the initial control plane 55 // machine, if the cluster is not using a control plane ref object, if the certificates are not provided 56 // by the users. 57 // IMPORTANT: This condition won't be re-created after clusterctl move. 58 CertificatesAvailableCondition clusterv1alpha3.ConditionType = "CertificatesAvailable" 59 60 // CertificatesGenerationFailedReason (Severity=Warning) documents a KubeadmConfig controller detecting 61 // an error while generating certificates; those kind of errors are usually temporary and the controller 62 // automatically recover from them. 63 CertificatesGenerationFailedReason = "CertificatesGenerationFailed" 64 65 // CertificatesCorruptedReason (Severity=Error) documents a KubeadmConfig controller detecting 66 // an error while retrieving certificates for a joining node. 67 CertificatesCorruptedReason = "CertificatesCorrupted" 68 )