Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-6015

Not possible to update Helm Chart deploy.security.batch on upgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RHDG 8.4.2 GA
    • RHDG Operator CSV 8.4.2 GA
    • Helm Chart
    • None
    • False
    • None
    • False
    • Workaround Exists
    • Hide

      Uninstall and reinstall the Helm chart with the deploy.security.batch value.

      Show
      Uninstall and reinstall the Helm chart with the deploy.security.batch value.

      The Helm Chart generates a secret on Helm install containing the content of deploy.security.batch as well as credentials required by the monitoring endpoint. If deploy.security.batch is empty, then a default user "developer" is created. Both the "developer" user and the "monitor" user have a password value that is generated by Helm.

      In order to prevent the generated password from being regenerated on calls to Helm Upgrade, the Secret is only generated if {{ .Release.IsInstall}}. Consequently, attempts to update deploy.security.batch on upgrade will be ignored as the old Secret is used.

      In order to support the below workflow, we need to refactor how credentials are managed:

      1.helm install -n helm datagrid . --set deploy.security.batch="user create djavan -p originalPass"
      2. helm upgrade -n helm datagrid . --set deploy.security.batch="user create djavan -p newPass"

              vrigamon@redhat.com Vittorio Rigamonti
              remerson@redhat.com Ryan Emerson
              Fabrizio Asta Fabrizio Asta
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: