@@ -693,6 +693,26 @@ Set xray env variables if rabbitmq.tls is enabled.
693
693
{ {- end } }
694
694
{ {- end -} }
695
695
696
+ { {- define " xray.resolveUsedMasterKeySecretName" -} }
697
+ { {- if or .Values.xray.masterKey .Values.xray.masterKeySecretName .Values.global.masterKey .Values.global.masterKeySecretName -} }
698
+ { {- if or (not .Values.xray.unifiedSecretInstallation) (or .Values.xray.masterKeySecretName .Values.global.masterKeySecretName) -} }
699
+ { {- include " xray.masterKeySecretName" . -} }
700
+ { {- else -} }
701
+ { { template " xray.name" . } }-unified-secret
702
+ { {- end -} }
703
+ { {- end -} }
704
+ { {- end -} }
705
+
706
+ { {- define " xray.resolveUsedJoinKeySecretName" -} }
707
+ { {- if or .Values.xray.joinKey .Values.xray.joinKeySecretName .Values.global.joinKey .Values.global.joinKeySecretName -} }
708
+ { {- if or (not .Values.xray.unifiedSecretInstallation) (or .Values.xray.joinKeySecretName .Values.global.joinKeySecretName) -} }
709
+ { {- include " xray.joinKeySecretName" . -} }
710
+ { {- else -} }
711
+ { { template " xray.name" . } }-unified-secret
712
+ { {- end -} }
713
+ { {- end -} }
714
+ { {- end -} }
715
+
696
716
{ {- define " xray.envVariables" } }
697
717
- name: XRAY_CHART_FULL_NAME
698
718
value: '{ { include " xray.fullname" . } }'
@@ -704,6 +724,10 @@ Set xray env variables if rabbitmq.tls is enabled.
704
724
value: "{ { .Values.systemYamlOverride.existingSecret } }"
705
725
- name: XRAY_CHART_SYSTEM_YAML_OVERRIDE_DATA_KEY
706
726
value: "{ { .Values.systemYamlOverride.dataKey } }"
727
+ - name: XRAY_CHART_MASTER_KEY_SECRET_NAME
728
+ value: '{ { include " xray.resolveUsedMasterKeySecretName" . } }'
729
+ - name: XRAY_CHART_JOIN_KEY_SECRET_NAME
730
+ value: '{ { include " xray.resolveUsedJoinKeySecretName" . } }'
707
731
{ {- end } }
708
732
709
733
{ {/*
0 commit comments