feat(infrastructure): update rabbitmq env

This commit is contained in:
2025-10-05 22:23:35 +02:00
parent 7ee45b451e
commit fae5d828bf
7 changed files with 24 additions and 18 deletions

View File

@@ -1,4 +1,3 @@
{{- if .Values.rabbitmq.password }}
apiVersion: rabbitmq.com/v1beta1
kind: User
metadata:
@@ -6,10 +5,9 @@ metadata:
namespace: {{ .Release.Namespace }}
spec:
rabbitmqClusterReference:
name: {{ .Values.rabbitmq.clusterName | default "rabbitmq" }}
namespace: {{ .Values.rabbitmq.namespace | default "rabbitmq" }}
name: rabbitmq-cluster
namespace: {{ .Release.Namespace }}
tags:
- management
importCredentialsSecret:
name: {{ printf "%s-user-credentials" (.Values.rabbitmq.username | default "app-user") }}
{{- end }}