Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-6043

Improve documentation of how to configure upstream.backstage.extra* fields in Helm Chart

Create Doc EPIC for Fe...Prepare for Y ReleasePrepare for Z ReleaseXMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Context:
      RHDH Helm Chart inherits upstream Backstage Helm Chart fields.
      In particular in user's values.yaml user can configure:

      upstream:
        backstage:
          extraEnvVars:
          extraVolumeMounts:
          extraVolumes:
      

      and other fields which contain array.

      To address the issue of Helm not merging arrays by default, you need to duplicate the predefined values from the RHDH Helm Chart's values.yaml into your own values.yaml file. This ensures that the predefined values are preserved while adding new values.

      Instructions (as for version 1.5.0 and earlier):
      To add new values to:

      upstream:
        backstage:
          extraVolumeMounts:
      

      First copy and paste the following content:

      extraVolumeMounts:
            - name: dynamic-plugins-root
              mountPath: /opt/app-root/src/dynamic-plugins-root
            - name: temp
              mountPath: /tmp
      

      To add new values to:

      upstream:
        backstage:
          extraVolumes:
      

      First copy and paste the following content:

      extraVolumes:
      initContainer below at start.
            - name: dynamic-plugins-root
              ephemeral:
                volumeClaimTemplate:
                  spec:
                    accessModes:
                      - ReadWriteOnce
                    resources:
                      requests:
                        storage: 5Gi
      

      To add new values to:

      upstream:
        backstage:
          extraEnvVars:
      

      First copy and paste the following content:

      extraEnvVars:
            - name: BACKEND_SECRET
              valueFrom:
                secretKeyRef:
                  key: backend-secret
                  name: '{{ include "janus-idp.backend-secret-name" $ }}'
            - name: POSTGRESQL_ADMIN_PASSWORD
              valueFrom:
                secretKeyRef:
                  key: postgres-password
                  name: '{{- include "janus-idp.postgresql.secretName" . }}'
      

              Unassigned Unassigned
              gazarenk-1 Gennady Azarenkov
              RHIDP - Documentation
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: