@@ -39,36 +39,53 @@ spec:
39
39
env :
40
40
- name : JAVA_TOOL_OPTIONS
41
41
value : {{ .Values.javaOptions }}
42
+ {{- if .Values.authentication.secret.server.usernameKey }}
42
43
- name : SOPHORA-SERVER_USERNAME
43
44
valueFrom :
44
45
secretKeyRef :
45
46
key : {{ .Values.authentication.secret.server.usernameKey }}
46
47
name : {{ .Values.authentication.secret.server.name }}
48
+ optional : true
49
+ {{- end }}
50
+ {{- if .Values.authentication.secret.server.passwordKey }}
47
51
- name : SOPHORA-SERVER_PASSWORD
48
52
valueFrom :
49
53
secretKeyRef :
50
54
key : {{ .Values.authentication.secret.server.passwordKey }}
51
55
name : {{ .Values.authentication.secret.server.name }}
56
+ optional : true
57
+ {{- end }}
58
+ {{- if .Values.authentication.secret.database.usernameKey }}
52
59
- name : DATABASE_USER
53
60
valueFrom :
54
61
secretKeyRef :
55
62
key : {{ .Values.authentication.secret.database.usernameKey }}
56
63
name : {{ .Values.authentication.secret.database.name }}
64
+ optional : true
65
+ {{- end }}
66
+ {{- if .Values.authentication.secret.database.passwordKey }}
57
67
- name : DATABASE_PASSWORD
58
68
valueFrom :
59
69
secretKeyRef :
60
70
key : {{ .Values.authentication.secret.database.passwordKey }}
61
71
name : {{ .Values.authentication.secret.database.name }}
72
+ optional : true
73
+ {{- end }}
74
+ {{- if .Values.authentication.secret.s3bucket.accessKeyKey }}
62
75
- name : SUBMISSIONS_S3_ACCESSKEYID
63
76
valueFrom :
64
77
secretKeyRef :
65
78
key : {{ .Values.authentication.secret.s3bucket.accessKeyKey }}
66
79
name : {{ .Values.authentication.secret.s3bucket.name }}
80
+ optional : true
81
+ {{- end }}
82
+ {{- if .Values.authentication.secret.s3bucket.secretIdKey }}
67
83
- name : SUBMISSIONS_S3_SECRETACCESSKEY
68
84
valueFrom :
69
85
secretKeyRef :
70
86
key : {{ .Values.authentication.secret.s3bucket.secretIdKey }}
71
87
name : {{ .Values.authentication.secret.s3bucket.name }}
88
+ {{- end }}
72
89
{{ if .Values.env -}}
73
90
{{- toYaml .Values.env | nindent 12 }}
74
91
{{- end }}
0 commit comments