@@ -39,36 +39,53 @@ spec:
3939 env :
4040 - name : JAVA_TOOL_OPTIONS
4141 value : {{ .Values.javaOptions }}
42+ {{- if .Values.authentication.secret.server.usernameKey }}
4243 - name : SOPHORA-SERVER_USERNAME
4344 valueFrom :
4445 secretKeyRef :
4546 key : {{ .Values.authentication.secret.server.usernameKey }}
4647 name : {{ .Values.authentication.secret.server.name }}
48+ optional : true
49+ {{- end }}
50+ {{- if .Values.authentication.secret.server.passwordKey }}
4751 - name : SOPHORA-SERVER_PASSWORD
4852 valueFrom :
4953 secretKeyRef :
5054 key : {{ .Values.authentication.secret.server.passwordKey }}
5155 name : {{ .Values.authentication.secret.server.name }}
56+ optional : true
57+ {{- end }}
58+ {{- if .Values.authentication.secret.database.usernameKey }}
5259 - name : DATABASE_USER
5360 valueFrom :
5461 secretKeyRef :
5562 key : {{ .Values.authentication.secret.database.usernameKey }}
5663 name : {{ .Values.authentication.secret.database.name }}
64+ optional : true
65+ {{- end }}
66+ {{- if .Values.authentication.secret.database.passwordKey }}
5767 - name : DATABASE_PASSWORD
5868 valueFrom :
5969 secretKeyRef :
6070 key : {{ .Values.authentication.secret.database.passwordKey }}
6171 name : {{ .Values.authentication.secret.database.name }}
72+ optional : true
73+ {{- end }}
74+ {{- if .Values.authentication.secret.s3bucket.accessKeyKey }}
6275 - name : SUBMISSIONS_S3_ACCESSKEYID
6376 valueFrom :
6477 secretKeyRef :
6578 key : {{ .Values.authentication.secret.s3bucket.accessKeyKey }}
6679 name : {{ .Values.authentication.secret.s3bucket.name }}
80+ optional : true
81+ {{- end }}
82+ {{- if .Values.authentication.secret.s3bucket.secretIdKey }}
6783 - name : SUBMISSIONS_S3_SECRETACCESSKEY
6884 valueFrom :
6985 secretKeyRef :
7086 key : {{ .Values.authentication.secret.s3bucket.secretIdKey }}
7187 name : {{ .Values.authentication.secret.s3bucket.name }}
88+ {{- end }}
7289 {{ if .Values.env -}}
7390 {{- toYaml .Values.env | nindent 12 }}
7491 {{- end }}
0 commit comments