[rabbitmq] Do not use hardcoded username in rabbitmq chown container

Pick up UID from .Values.pod.security_context.server.pod.runAsUser as this is
user that we are using to run service.

Change-Id: Id4c53b0a882b027e320b08ed766cb473ab9ab535
This commit is contained in:
Vasyl Saienko 2024-09-13 09:20:34 +00:00
parent b591d3aa49
commit 4b37c1fd60
3 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,6 @@ apiVersion: v1
appVersion: v3.12.0
description: OpenStack-Helm RabbitMQ
name: rabbitmq
version: 0.1.37
version: 0.1.38
home: https://github.com/rabbitmq/rabbitmq-server
...

View File

@ -182,7 +182,7 @@ spec:
command:
- chown
- -R
- "rabbitmq:"
- "{{ $envAll.Values.pod.security_context.server.pod.runAsUser }}"
- /var/lib/rabbitmq
volumeMounts:
- name: pod-tmp

View File

@ -37,4 +37,5 @@ rabbitmq:
- 0.1.35 Add configurable probes to rabbitmq container
- 0.1.36 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default
- 0.1.37 Update rabbitmq readiness/liveness command
- 0.1.38 Do not use hardcoded username in rabbitmq chown container
...