Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1581

Cannot mount a secret/configmap with a '.' in its name.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.2
    • None
    • Operator
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      In earlier versions of the Red Hat Developer Hub Operator, it was not possible to reference a ConfigMap or Secret object in the Custom Resource if that object contains a dot (`.`) character in its name. This would result in an issue preventing the Red Hat Developer Hub instance from starting correctly.
      This update fixes this issue.
      Show
      In earlier versions of the Red Hat Developer Hub Operator, it was not possible to reference a ConfigMap or Secret object in the Custom Resource if that object contains a dot (`.`) character in its name. This would result in an issue preventing the Red Hat Developer Hub instance from starting correctly. This update fixes this issue.
    • Bug Fix
    • Proposed
    • 2
    • RHDH Core Team 3257

      Description of problem:

      The backstage CRD doesn't allow a user to mount a configMap (and probably a secret too) if the resource name contains a `.` : `[spec.template.spec.volumes[4].name: Invalid value: \"kube-root-ca.crt\": must not contain dots`.

      Prerequisites (if any, like setup, operators/versions):

      RDHD 1.1.2.

      Steps to Reproduce

      Adding the following configuration to the CRD is an easy way to reproduce the issue:
      ```
      spec:
      application:
      extraFiles:
      configMaps:

      • name: kube-root-ca.crt
        mountPath: /ingress-cert
        ```

      Actual results:

      Backstage UI is not deployed.

      Expected results:

      Resource name is sanitized and the Backstage UI is deployed.

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

              rh-ee-asoro Armel Soro
              rarnaud@redhat.com Romain Arnaud
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: