Skip to content

Commit

Permalink
[stable/rabbitmq] fix sed invocation to handle special characters
Browse files Browse the repository at this point in the history
Tested with '/\/\--||?+*':

    $ kubectl create secret generic rabbitmq-secret --from-literal=rabbitmq-password='/\/\--||?+*'
    ...
    $ helm install --name my-release stable/rabbitmq --set rabbitmq.existingPasswordSecret=rabbitmq-secret --set persistence.storageClass=standard
    ...
    $ kubectl exec my-release-rabbitmq-0  -ti -- grep default_pass /opt/bitnami/rabbitmq/etc/rabbitmq/rabbitmq.conf
    default_pass=/\/\--||?+*

Resolves helm#15069.

Signed-off-by: Karoline Pauls <[email protected]>
  • Loading branch information
karolinepauls committed Jun 27, 2019
1 parent 458d8b9 commit 35f77c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/rabbitmq/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: rabbitmq
version: 6.1.2
version: 6.1.3
appVersion: 3.7.15
description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP)
keywords:
Expand Down
2 changes: 1 addition & 1 deletion stable/rabbitmq/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
ulimit -n "${RABBITMQ_ULIMIT_NOFILES}"
{{- end }}
#replace the default password that is generated
sed -i "s|CHANGEME|$RABBITMQ_PASSWORD|g" /opt/bitnami/rabbitmq/etc/rabbitmq/rabbitmq.conf
sed -i "/CHANGEME/cdefault_pass=${RABBITMQ_PASSWORD//\\/\\\\}" /opt/bitnami/rabbitmq/etc/rabbitmq/rabbitmq.conf
#api check for probes
cat > /opt/bitnami/rabbitmq/sbin/rabbitmq-api-check <<EOF
#!/bin/sh
Expand Down

0 comments on commit 35f77c3

Please sign in to comment.