Uploaded image for project: 'OpenShift Installer'
  1. OpenShift Installer
  2. CORS-2801

User Managed DNS: Edit bootstrap ignition

XMLWordPrintable

    • 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)
      } 

              rh-ee-bbarbach Brent Barbachem
              rh-ee-bbarbach Brent Barbachem
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: