-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
BU Product Work
-
3
-
False
-
None
-
False
-
OCPSTRAT-990 - [GA] Allow customer managed DNS solutions for GCP: Implementation
-
-
-
Sprint 244, Sprint 246
When the load Balancer Config map has been generated in the install director, the file should be appended to the list of storage files in the ignition file.
// TODO: if installConfig.platform.UserConfiguredDNS == Enabled lbConfigPath := fmt.Sprintf("%s/%s", command.RootOpts.Dir, lbconfig.ConfigName) if _, err := os.Stat(lbConfigPath); err != nil { if !os.IsNotExist(err) { return fmt.Errorf("failed to find %s: %w", lbConfigPath, err) } } else { lbConfigContents, err := os.ReadFile(lbConfigPath) if err != nil { return fmt.Errorf("failed to read %s: %w", lbConfigPath, err) } lbPath := fmt.Sprintf("/opt/openshift/manifests/%s", lbconfig.ConfigName) a.Config.Storage.Files = replaceOrAppend(a.Config.Storage.Files, ignition.FileFromBytes(lbPath, "root", 420, lbConfigContents)) os.Remove(lbConfigPath) }