Documentation
¶
Index ¶
Constants ¶
View Source
const ( // NodePlatformTypeLabelKey and NodePlatformTypeLabelValueVSphere are the label the vSphere CCM applies // (via --node-labels, see additionalLabels below) to nodes when it first initializes them. They are // exported so that node.openshift.io/platform-type=vsphere can be reapplied to nodes that were // initialized before the VSphereMixedNodeEnv feature gate was enabled. NodePlatformTypeLabelKey = "node.openshift.io/platform-type" NodePlatformTypeLabelValueVSphere = "vsphere" // NodeProviderIDPrefix is the spec.providerID prefix used by vSphere nodes, e.g. vsphere://4210e24f-... NodeProviderIDPrefix = "vsphere://" )
Variables ¶
This section is empty.
Functions ¶
func CloudConfigTransformer ¶
func CloudConfigTransformer(source string, infra *configv1.Infrastructure, network *configv1.Network, features featuregates.FeatureGate) (string, error)
CloudConfigTransformer takes the user-provided, legacy cloud provider-compatible configuration and modifies it to be compatible with the external cloud provider. Returns an error if the platform is not VSpherePlatformType or if any errors were encountered while attempting to transform a configuration. Currently, CloudConfigTransformer is responsible to populate vcenters, labels, and node networking parameters from the Infrastructure resource. Also, this function converts legacy deprecated INI configuration format to a YAML-based one.
func NewProviderAssets ¶
func NewProviderAssets(config config.OperatorConfig) (common.CloudProviderAssets, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.