sigs.k8s.io/cluster-api-provider-aws@v1.5.5/bootstrap/eks/api/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/api/v1alpha3"
    20  
    21  // Conditions and condition Reasons for the EKSConfig object
    22  // FROM: https://github.com/kubernetes-sigs/cluster-api/blob/main/bootstrap/kubeadm/api/v1alpha3/condition_consts.go
    23  
    24  const (
    25  	// DataSecretAvailableCondition documents the status of the bootstrap secret generation process.
    26  	//
    27  	// NOTE: When the DataSecret generation starts the process completes immediately and within the
    28  	// same reconciliation, so the user will always see a transition from Wait to Generated without having
    29  	// evidence that BootstrapSecret generation is started/in progress.
    30  	DataSecretAvailableCondition clusterv1alpha3.ConditionType = "DataSecretAvailable"
    31  
    32  	// DataSecretGenerationFailedReason (Severity=Warning) documents a EKSConfig controller detecting
    33  	// an error while generating a data secret; those kind of errors are usually due to misconfigurations
    34  	// and user intervention is required to get them fixed.
    35  	DataSecretGenerationFailedReason = "DataSecretGenerationFailed"
    36  
    37  	// WaitingForClusterInfrastructureReason (Severity=Info) document a bootstrap secret generation process
    38  	// waiting for the cluster infrastructure to be ready.
    39  	//
    40  	// NOTE: Having the cluster infrastructure ready is a pre-condition for starting to create machines;
    41  	// the EKSConfig controller ensure this pre-condition is satisfied.
    42  	WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure"
    43  
    44  	// WaitingForControlPlaneInitializationReason (Severity=Info) documents a bootstrap secret generation process
    45  	// waiting for the control plane to be initialized.
    46  	//
    47  	// NOTE: This is a pre-condition for starting to create machines;
    48  	// the EKSConfig controller ensure this pre-condition is satisfied.
    49  	WaitingForControlPlaneInitializationReason = "WaitingForControlPlaneInitialization"
    50  )