sigs.k8s.io/cluster-api@v1.7.1/bootstrap/kubeadm/api/v1beta1/condition_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 // 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 clusterv1.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 // DataSecretGenerationFailedReason (Severity=Warning) documents a KubeadmConfig controller detecting 39 // an error while generating a data secret; those kind of errors are usually due to misconfigurations 40 // and user intervention is required to get them fixed. 41 DataSecretGenerationFailedReason = "DataSecretGenerationFailed" 42 ) 43 44 const ( 45 // CertificatesAvailableCondition documents that cluster certificates are available. 46 // 47 // NOTE: Cluster certificates are generated only for the KubeadmConfig object linked to the initial control plane 48 // machine, if the cluster is not using a control plane ref object, if the certificates are not provided 49 // by the users. 50 // IMPORTANT: This condition won't be re-created after clusterctl move. 51 CertificatesAvailableCondition clusterv1.ConditionType = "CertificatesAvailable" 52 53 // CertificatesGenerationFailedReason (Severity=Warning) documents a KubeadmConfig controller detecting 54 // an error while generating certificates; those kind of errors are usually temporary and the controller 55 // automatically recover from them. 56 CertificatesGenerationFailedReason = "CertificatesGenerationFailed" 57 58 // CertificatesCorruptedReason (Severity=Error) documents a KubeadmConfig controller detecting 59 // an error while retrieving certificates for a joining node. 60 CertificatesCorruptedReason = "CertificatesCorrupted" 61 )