1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-06 00:48:45 +01:00

Merge pull request #5218 from omertuc/bipnocreate

Block `create cluster` if bootstrapInPlace is set in install-config
This commit is contained in:
OpenShift Merge Robot
2021-09-23 20:05:39 -04:00
committed by GitHub

View File

@@ -67,6 +67,10 @@ func (c *Cluster) Generate(parents asset.Parents) (err error) {
return errors.New("cluster cannot be created with platform set to 'none'")
}
if installConfig.Config.BootstrapInPlace != nil {
return errors.New("cluster cannot be created with bootstrapInPlace set")
}
platform := installConfig.Config.Platform.Name()
stages := platformstages.StagesForPlatform(platform)