Skip to content

Commit

Permalink
Moved vars above license ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 committed Jan 15, 2025
1 parent b28c632 commit f83a2f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mirrord-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ spec:
- name: OPERATOR_TLS_KEY_PATH
value: /tls/tls.key
{{- end }}
{{- if or .Values.license.file.data .Values.license.pemRef }}
- name: OPERATOR_LICENSE_PATH
value: /license/license.pem
{{- else if .Values.license.key }}
{{- if .Values.agent.tls }}
- name: OPERATOR_AGENT_CONNECTION_TLS
value: "true"
Expand All @@ -104,6 +100,10 @@ spec:
{{- end }}
- name: OPERATOR_COPY_TARGET_USE_AGENT_IMAGE
value: {{ .Values.operator.copyTarget.useAgentImage | ternary "true" "false" | quote }}
{{- if or .Values.license.file.data .Values.license.pemRef }}
- name: OPERATOR_LICENSE_PATH
value: /license/license.pem
{{- else if .Values.license.key }}
envFrom:
- secretRef:
name: {{ .Values.license.file.secret }}
Expand Down

0 comments on commit f83a2f6

Please sign in to comment.