Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MGMT-15796: set CloudControllerManager to External for OCI #5548

Merged
merged 1 commit into from Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions internal/installcfg/installcfg.go
Expand Up @@ -128,8 +128,23 @@ type NutanixPrismElement struct {
Name string `yaml:"name"`
}

// CloudControllerManager describes the type of cloud controller manager to be enabled.
type CloudControllerManager string

const (
// CloudControllerManagerTypeExternal specifies that an external cloud provider is to be configured.
CloudControllerManagerTypeExternal = "External"

// CloudControllerManagerTypeNone specifies that no cloud provider is to be configured.
CloudControllerManagerTypeNone = ""
)

type ExternalInstallConfigPlatform struct {
// PlatformName holds the arbitrary string representing the infrastructure provider name, expected to be set at the installation time.
PlatformName string `yaml:"platformName"`

// CloudControllerManager when set to external, this property will enable an external cloud provider.
CloudControllerManager CloudControllerManager `yaml:"cloudControllerManager"`
}

type PlatformNone struct {
Expand Down
3 changes: 2 additions & 1 deletion internal/provider/external/installConfig.go
Expand Up @@ -12,7 +12,8 @@ import (
func (p baseExternalProvider) AddPlatformToInstallConfig(cfg *installcfg.InstallerConfigBaremetal, cluster *common.Cluster) error {
cfg.Platform = installcfg.Platform{
External: &installcfg.ExternalInstallConfigPlatform{
PlatformName: string(p.Name()),
PlatformName: string(p.Name()),
CloudControllerManager: installcfg.CloudControllerManagerTypeExternal,
},
}

Expand Down