[stable/rabbitmq] Add parameter to indicate 'extraPlugins' to install (#12932)

Signed-off-by: juan131 <juan@bitnami.com>
This commit is contained in:
Juan Ariza Toledano
2019-04-09 03:03:05 -07:00
committed by Kubernetes Prow Robot
parent c771634efd
commit 3160f97680
6 changed files with 27 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: rabbitmq
version: 5.0.0
version: 5.1.0
appVersion: 3.7.14
description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP)
keywords:
+2 -1
View File
@@ -61,7 +61,8 @@ The following table lists the configurable parameters of the RabbitMQ chart and
| `rabbitmq.existingPasswordSecret` | Existing secret with RabbitMQ credentials | nil |
| `rabbitmq.erlangCookie` | Erlang cookie | _random 32 character long alphanumeric string_ |
| `rabbitmq.existingErlangSecret` | Existing secret with RabbitMQ Erlang cookie | nil |
| `rabbitmq.plugins` | configuration file for plugins to enable | `[rabbitmq_management,rabbitmq_peer_discovery_k8s].` |
| `rabbitmq.plugins` | List of plugins to enable | `rabbitmq_management rabbitmq_peer_discovery_k8s` |
| `rabbitmq.extraPlugins` | Extra plugings to enable | `nil` |
| `rabbitmq.clustering.address_type` | Switch clustering mode | `ip` or `hostname` |
| `rabbitmq.clustering.k8s_domain` | Customize internal k8s cluster domain | `cluster.local` |
| `rabbitmq.logs` | Value for the RABBITMQ_LOGS environment variable | `-` |
+13
View File
@@ -31,6 +31,19 @@ Create chart name and version as used by the chart label.
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Return the proper RabbitMQ plugin list
*/}}
{{- define "rabbitmq.plugins" -}}
{{- $plugins := .Values.rabbitmq.plugins | replace " " ", " -}}
{{- if .Values.rabbitmq.extraPlugins -}}
{{- $extraPlugins := .Values.rabbitmq.extraPlugins | replace " " ", " -}}
{{- printf "[%s, %s]." $plugins $extraPlugins | indent 4 -}}
{{- else -}}
{{- printf "[%s]." $plugins | indent 4 -}}
{{- end -}}
{{- end -}}
{{/*
Return the proper RabbitMQ image name
*/}}
+1 -1
View File
@@ -9,7 +9,7 @@ metadata:
heritage: "{{ .Release.Service }}"
data:
enabled_plugins: |-
{{ .Values.rabbitmq.plugins | indent 4 }}
{{ template "rabbitmq.plugins" . }}
rabbitmq.conf: |-
##username and password
default_user={{.Values.rabbitmq.username}}
+5 -2
View File
@@ -71,8 +71,11 @@ rabbitmq:
ulimitNofiles: '65536'
## Plugins to enable
plugins: |-
[rabbitmq_management, rabbitmq_peer_discovery_k8s].
plugins: "rabbitmq_management rabbitmq_peer_discovery_k8s"
## Extra plugins to enable
## Use this instead of `plugins` to add new plugins
# extraPlugins: ""
## Clustering settings
clustering:
+5 -2
View File
@@ -71,8 +71,11 @@ rabbitmq:
ulimitNofiles: '65536'
## Plugins to enable
plugins: |-
[rabbitmq_management, rabbitmq_peer_discovery_k8s].
plugins: "rabbitmq_management rabbitmq_peer_discovery_k8s"
## Extra plugins to enable
## Use this instead of `plugins` to add new plugins
# extraPlugins: ""
## Clustering settings
clustering: