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

User Managed DNS: [AWS] Edit bootstrap ignition

XMLWordPrintable

    • 3
    • False
    • None
    • False

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

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

                Created:
                Updated:
                Resolved: