Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-5402

Operator option for post-config.sh ConfigMap in the initContainer

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • configuration, operator
    • None
    • False
    • False

      For convenience it would be helpful if there is an option in the Operator to mount a ConfigMap or Secret in /amq/scripts for the post-config.sh to update or tweak the broker config.

      Right now you can do this manually but it requires a lot of work:

      1) Create the ConfigMap with the post-config script

      2) Set the volume in the Statefulset mounting the ConfigMap in /amq/scripts

      3) Edit the Statefulset manually and very carefully move the volume from the broker container to the initContainer

      4) Cross fingers and scale up the Operator

      All of this is very prone to errors and in case of recreating the environment from the ActiveMQArtemis YAML or deleting the Statefulset everything will be lost.

      Besides, my cust have a lot of AMQ Brokers deployed on OCP 4.7 and it's a real pain to do all of this manually.

              gaohoward Howard Gao
              rhn-support-wlovaton William Lovaton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: