mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-27 22:17:07 +10:00
[bitnami/rabbitmq] Allow for templating in extraSecrets (#4378)
This commit is contained in:
@@ -23,4 +23,4 @@ name: rabbitmq
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-rabbitmq
|
||||
- https://www.rabbitmq.com
|
||||
version: 8.0.2
|
||||
version: 8.0.3
|
||||
|
||||
@@ -143,7 +143,7 @@ The following table lists the configurable parameters of the RabbitMQ chart and
|
||||
| `sidecars` | Add additional sidecar containers to the RabbitMQ pod | `{}` (evaluated as a template) |
|
||||
| `extraVolumeMounts` | Optionally specify extra list of additional volumeMounts . | `{}` |
|
||||
| `extraVolumes` | Optionally specify extra list of additional volumes . | `{}` |
|
||||
| `extraSecrets` | Optionally specify extra secrets to be created by the chart. | `{}` |
|
||||
| `extraSecrets` | Optionally specify extra secrets to be created by the chart. | `{}` (evaluated as a template) |
|
||||
|
||||
### Exposure parameters
|
||||
|
||||
@@ -402,6 +402,13 @@ type: Opaque
|
||||
stringData:
|
||||
load_definition.json: |-
|
||||
{
|
||||
"users": [
|
||||
{
|
||||
"name": "user",
|
||||
"password": "CHANGEME",
|
||||
"tags": "administrator"
|
||||
}
|
||||
],
|
||||
"vhosts": [
|
||||
{
|
||||
"name": "/"
|
||||
@@ -414,13 +421,20 @@ Then, specify the `load_definitions` property as an `extraConfiguration` pointin
|
||||
|
||||
> Loading a definition will take precedence over any configuration done through [Helm values](#parameters).
|
||||
|
||||
If needed, you can use `extraSecrets` to let the chart create the secret for you. This way, you don't need to manually create it before deploying a release. For example :
|
||||
If needed, you can use `extraSecrets` to let the chart create the secret for you. This way, you don't need to manually create it before deploying a release. These secrets can also be templated to use supplied chart values. For example:
|
||||
|
||||
```yaml
|
||||
extraSecrets:
|
||||
load-definition:
|
||||
load_definition.json: |
|
||||
{
|
||||
"users": [
|
||||
{
|
||||
"name": "{{ .Values.auth.username }}",
|
||||
"password": "{{ .Values.auth.password }}",
|
||||
"tags": "administrator"
|
||||
}
|
||||
],
|
||||
"vhosts": [
|
||||
{
|
||||
"name": "/"
|
||||
|
||||
@@ -31,5 +31,5 @@ metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
labels: {{- include "common.labels.standard" $ | nindent 4 }}
|
||||
type: Opaque
|
||||
stringData: {{- $value | toYaml | nindent 2 }}
|
||||
stringData: {{- include "common.tplvalues.render" (dict "value" $value "context" $) | nindent 2 }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user