From fa78eeff3b3855e0c46e5b5e94b4fc4039e1f19d Mon Sep 17 00:00:00 2001 From: prppedro Date: Wed, 25 May 2022 21:49:12 -0300 Subject: [PATCH] Specifying License and RegToken only for install If those settings are passed on a upgrade, they may void the licence already in place. --- rocketchat/templates/chat-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocketchat/templates/chat-deployment.yaml b/rocketchat/templates/chat-deployment.yaml index 01f88ed..3422573 100644 --- a/rocketchat/templates/chat-deployment.yaml +++ b/rocketchat/templates/chat-deployment.yaml @@ -100,14 +100,14 @@ spec: key: mail-url {{- end }} {{- end }} - {{- if .Values.registrationToken }} + {{- if and .Values.registrationToken .Release.IsInstall }} - name: REG_TOKEN valueFrom: secretKeyRef: name: {{ template "rocketchat.fullname" . }} key: reg-token {{- end }} - {{- if .Values.license }} + {{- if and .Values.license .Release.IsInstall }} - name: ROCKETCHAT_LICENSE valueFrom: secretKeyRef: