Skip to content

Commit

Permalink
Specifying License and RegToken only for install
Browse files Browse the repository at this point in the history
If those settings are passed on a upgrade, they may void the licence already in place.
  • Loading branch information
prppedro committed May 26, 2022
1 parent bf49407 commit fa78eef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rocketchat/templates/chat-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fa78eef

Please sign in to comment.