github.com/openshift/installer@v1.4.17/pkg/types/external/platform.go (about)

     1  package external
     2  
     3  // CloudControllerManager describes the type of cloud controller manager to be enabled.
     4  type CloudControllerManager string
     5  
     6  const (
     7  	// CloudControllerManagerTypeExternal specifies that an external cloud provider is to be configured.
     8  	CloudControllerManagerTypeExternal = "External"
     9  
    10  	// CloudControllerManagerTypeNone specifies that no cloud provider is to be configured.
    11  	CloudControllerManagerTypeNone = ""
    12  )
    13  
    14  // Platform stores configuration related to external cloud providers.
    15  type Platform struct {
    16  	// PlatformName holds the arbitrary string representing the infrastructure provider name, expected to be set at the installation time.
    17  	// This field is solely for informational and reporting purposes and is not expected to be used for decision-making.
    18  	// +kubebuilder:default:="Unknown"
    19  	// +default="Unknown"
    20  	// +kubebuilder:validation:XValidation:rule="oldSelf == 'Unknown' || self == oldSelf",message="platform name cannot be changed once set"
    21  	// +optional
    22  	PlatformName string `json:"platformName,omitempty"`
    23  
    24  	// CloudControllerManager when set to external, this property will enable an external cloud provider.
    25  	// +kubebuilder:default:=""
    26  	// +default=""
    27  	// +kubebuilder:validation:Enum="";External
    28  	// +optional
    29  	CloudControllerManager CloudControllerManager `json:"cloudControllerManager,omitempty"`
    30  }