• Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.5.0
    • 1.3.0, 1.4.0, 1.4.1
    • Helm Chart
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      = Dynamic plugins PVC now ephemeral by default to prevent upgrade issues

      In {product-short} Helm Chart version 1.4.2+, it was possible to configure the storage class and access mode for the dynamic plugins Persistent Volume Claim (PVC) using the dynamicPlugins.cache.volumeClaimSpec field in the Helm values file.

      In version {product-version}, this behavior has been reverted, making the dynamic plugins root PVC ephemeral by default. This change addresses issues encountered when upgrading the Helm Chart or running multiple replicas of {product-short}.

      You can still customize the ephemeral volume claim’s storage class and access mode using the upstream.backstage.extraVolumes field, as shown in the example below. However, ensure that all other volumes declared in the default {rhdh-chart} Chart are also included.

      .Example configuration
      [source,yaml]
      ----
      upstream:
        backstage:
          extraVolumes:
            - name: dynamic-plugins-root
              ephemeral:
                volumeClaimTemplate:
                  spec:
                    accessModes:
                      # TODO: Change the access mode below
                      - ReadWriteOnce
                    resources:
                      requests:
                        storage: 5Gi
                    # TODO: Add your storage class below
                    storageClassName: "<my-custom-storage-class>"

            - name: dynamic-plugins
              configMap:
                defaultMode: 420
                name: '{{ printf "%s-dynamic-plugins" .Release.Name }}'
                optional: true

            - name: dynamic-plugins-npmrc
              secret:
                defaultMode: 420
                optional: true
                secretName: '{{ printf "%s-dynamic-plugins-npmrc" .Release.Name }}'

            - name: dynamic-plugins-registry-auth
              secret:
                defaultMode: 416
                optional: true
                secretName: '{{ printf "%s-dynamic-plugins-registry-auth" .Release.Name }}'

            - name: npmcacache
              emptyDir: {}

            - name: temp
              emptyDir: {}
      ----
      Show
      = Dynamic plugins PVC now ephemeral by default to prevent upgrade issues In {product-short} Helm Chart version 1.4.2+, it was possible to configure the storage class and access mode for the dynamic plugins Persistent Volume Claim (PVC) using the dynamicPlugins.cache.volumeClaimSpec field in the Helm values file. In version {product-version}, this behavior has been reverted, making the dynamic plugins root PVC ephemeral by default. This change addresses issues encountered when upgrading the Helm Chart or running multiple replicas of {product-short}. You can still customize the ephemeral volume claim’s storage class and access mode using the upstream.backstage.extraVolumes field, as shown in the example below. However, ensure that all other volumes declared in the default {rhdh-chart} Chart are also included. .Example configuration [source,yaml] ---- upstream:   backstage:     extraVolumes:       - name: dynamic-plugins-root         ephemeral:           volumeClaimTemplate:             spec:               accessModes:                 # TODO: Change the access mode below                 - ReadWriteOnce               resources:                 requests:                   storage: 5Gi               # TODO: Add your storage class below               storageClassName: "<my-custom-storage-class>"       - name: dynamic-plugins         configMap:           defaultMode: 420           name: '{{ printf "%s-dynamic-plugins" .Release.Name }}'           optional: true       - name: dynamic-plugins-npmrc         secret:           defaultMode: 420           optional: true           secretName: '{{ printf "%s-dynamic-plugins-npmrc" .Release.Name }}'       - name: dynamic-plugins-registry-auth         secret:           defaultMode: 416           optional: true           secretName: '{{ printf "%s-dynamic-plugins-registry-auth" .Release.Name }}'       - name: npmcacache         emptyDir: {}       - name: temp         emptyDir: {} ----
    • Bug Fix
    • Done
    • RHDH Install 3268

      Description of problem:

      The storage class for the dynamic plugins PVC is not configurable, which can cause issues in clusters without a default storage class or in clusters where the default storage class cannot be used (for example due to user's standards).

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

      Steps to Reproduce

      1. Create a cluster without any default storage class
      2. Install the Helm Chart

      Actual results:

      RHDH Deployment will be stuck forever, waiting for the dynamic plugins PVC to be created

      Expected results:

      Make it possible for the user to specify the storage class they want to use.

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      RHDH Chart for 1.3, 1.4

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

              rh-ee-asoro Armel Soro
              rh-ee-asoro Armel Soro
              RHIDP - Install
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: