<p><strong>Goal</strong>: Prepare a <code>values.yaml</code> file for the <a href="https://github.com/bitnami/charts/tree/master/bitnami/rabbitmq" rel="noreferrer">rabbitmq chart provided by bitnami</a>, such that the plugin <a href="https://github.com/noxdafox/rabbitmq-message-deduplication" rel="noreferrer">rabbitmq-message-deduplication</a> is ready and available after running <code>helm install ...</code></p>
<p><strong>Previous solution</strong>: Currently, I am using the <code>stable/rabbitmq-ha</code> chart with the following <code>values.yaml</code>:</p>
<pre class="lang-yaml prettyprint-override"><code>extraPlugins: &quot;rabbitmq_message_deduplication&quot;

extraInitContainers:
  - name: download-plugins
    image: busybox
    command: [&quot;/bin/sh&quot;,&quot;-c&quot;]
    args: [&quot;
      wget
          -O /opt/rabbitmq/plugins/elixir-1.8.2.ez/elixir-1.8.2.ez
          https://github.com/noxdafox/rabbitmq-message-deduplication/releases/download/0.4.5/elixir-1.8.2.ez
          --no-check-certificate
      ;
      wget
          -O /opt/rabbitmq/plugins/rabbitmq_message_deduplication-v3.8.4.ez/rabbitmq_message_deduplication-v3.8.4.ez
          https://github.com/noxdafox/rabbitmq-message-deduplication/releases/download/0.4.5/rabbitmq_message_deduplication-v3.8.x_0.4.5.ez
          --no-check-certificate
      &quot;]
    volumeMounts:
      # elixir is a dependency of the deduplication plugin
      - name: elixir
        mountPath: /opt/rabbitmq/plugins/elixir-1.8.2.ez
      - name: deduplication-plugin
        mountPath: /opt/rabbitmq/plugins/rabbitmq_message_deduplication-v3.8.4.ez

extraVolumes:
  - name: elixir
    emptyDir: {}
  - name: deduplication-plugin
    emptyDir: {}

extraVolumeMounts:
  - name: elixir
    mountPath: /opt/rabbitmq/plugins/elixir-1.8.2.ez
    subPath: elixir-1.8.2.ez
  - name: deduplication-plugin
    mountPath: /opt/rabbitmq/plugins/rabbitmq_message_deduplication-v3.8.4.ez
    subPath: rabbitmq_message_deduplication-v3.8.4.ez
</code></pre>
<p>This works A-OK. However, <code>stable/rabbitmq-ha</code> is going to disappear next month and so I'm migrating to <code>bitnami/rabbitmq</code>.</p>
<p><strong>Problem</strong>: <code>bitnami/rabbitmq</code> expects <code>values.yaml</code> in a different <a href="https://github.com/bitnami/charts/blob/master/bitnami/rabbitmq/values.yaml" rel="noreferrer">format</a> and I can't for the life of me figure out how I should set up a new <code>values.yaml</code> file to achieve the same result. I've tried messing around with <code>command</code>, <code>args</code> and <code>initContainers</code> but I just can't get it done...</p>
<p>P.S. I have a cluster running locally using minikube. I don't believe this is relevant, but putting this here just in case.</p>
<p><strong>UPDATE:</strong> Francisco's answer really helped. Somehow I missed that part of the documentation.</p>
<p>My new <code>.yaml</code> looks like this:</p>
<pre class="lang-yaml prettyprint-override"><code>communityPlugins: &quot;https://github.com/noxdafox/rabbitmq-message-deduplication/releases/download/0.4.5/elixir-1.8.2.ez https://github.com/noxdafox/rabbitmq-message-deduplication/releases/download/0.4.5/rabbitmq_message_deduplication-v3.8.x_0.4.5.ez&quot;

extraPlugins: &quot;rabbitmq_message_deduplication&quot;
</code></pre>
<p>It gets the plugin working just like I wanted, and with much less configuration. Good stuff.</p>

<p>Thanks for choosing our chart! Our <a href="https://github.com/bitnami/charts/tree/master/bitnami/rabbitmq" rel="noreferrer">[bitnami/rabbitmq]</a> chart uses the parameter <code>communityPlugins</code> to install new plugins and <code>extraPlugins</code> to enable them. For example, to enable the <code>elixir</code> plugin you could try changing <code>values.yaml</code> to:</p>
<pre class="lang-yaml prettyprint-override"><code>communityPlugins: &quot;https://github.com/noxdafox/rabbitmq-message-deduplication/releases/download/0.4.5/elixir-1.8.2.ez&quot;

extraPlugins: &quot;rabbitmq_auth_backend_ldap elixir&quot;
</code></pre>
<p>For more information, please look into the <a href="https://github.com/bitnami/charts/tree/master/bitnami/rabbitmq#plugins" rel="noreferrer">Plugin section</a> in our README and ask any more doubts if you need to!</p>
