File tree Expand file tree Collapse file tree 21 files changed +423
-0
lines changed Expand file tree Collapse file tree 21 files changed +423
-0
lines changed Original file line number Diff line number Diff line change 25
25
app : {{ template "bitwarden.admin" . }}
26
26
{{ include "bitwarden.labels" . | indent 8 }}
27
27
spec :
28
+ {{- if or .Values.component.admin.nodeSelector .Values.general.nodeSelector }}
29
+ nodeSelector :
30
+ {{- if .Values.component.admin.nodeSelector }}
31
+ {{ toYaml .Values.component.admin.nodeSelector | nindent 8 }}
32
+ {{- else }}
33
+ {{ toYaml .Values.general.nodeSelector | nindent 8 }}
34
+ {{- end }}
35
+ {{- end }}
36
+ {{- if or .Values.component.admin.tolerations .Values.general.tolerations }}
37
+ tolerations :
38
+ {{- if .Values.component.admin.tolerations }}
39
+ {{ toYaml .Values.component.admin.tolerations | nindent 8 }}
40
+ {{- else }}
41
+ {{ toYaml .Values.general.tolerations | nindent 8 }}
42
+ {{- end }}
43
+ {{- end }}
28
44
{{- if .Values.component.admin.podServiceAccount }}
29
45
serviceAccount : {{ .Values.component.admin.podServiceAccount | quote }}
30
46
serviceAccountName : {{ .Values.component.admin.podServiceAccount | quote }}
Original file line number Diff line number Diff line change 25
25
app.kubernetes.io/component : api
26
26
{{ include "bitwarden.labels" . | indent 8 }}
27
27
spec :
28
+ {{- if or .Values.component.api.nodeSelector .Values.general.nodeSelector }}
29
+ nodeSelector :
30
+ {{- if .Values.component.api.nodeSelector }}
31
+ {{ toYaml .Values.component.api.nodeSelector | nindent 8 }}
32
+ {{- else }}
33
+ {{ toYaml .Values.general.nodeSelector | nindent 8 }}
34
+ {{- end }}
35
+ {{- end }}
36
+ {{- if or .Values.component.api.tolerations .Values.general.tolerations }}
37
+ tolerations :
38
+ {{- if .Values.component.api.tolerations }}
39
+ {{ toYaml .Values.component.api.tolerations | nindent 8 }}
40
+ {{- else }}
41
+ {{ toYaml .Values.general.tolerations | nindent 8 }}
42
+ {{- end }}
43
+ {{- end }}
28
44
{{- if .Values.component.api.podServiceAccount }}
29
45
serviceAccount : {{ .Values.component.api.podServiceAccount | quote }}
30
46
serviceAccountName : {{ .Values.component.api.podServiceAccount | quote }}
Original file line number Diff line number Diff line change 25
25
app.kubernetes.io/component : attachments
26
26
{{ include "bitwarden.labels" . | indent 8 }}
27
27
spec :
28
+ {{- if or .Values.component.attachments.nodeSelector .Values.general.nodeSelector }}
29
+ nodeSelector :
30
+ {{- if .Values.component.attachments.nodeSelector }}
31
+ {{ toYaml .Values.component.attachments.nodeSelector | nindent 8 }}
32
+ {{- else }}
33
+ {{ toYaml .Values.general.nodeSelector | nindent 8 }}
34
+ {{- end }}
35
+ {{- end }}
36
+ {{- if or .Values.component.attachments.tolerations .Values.general.tolerations }}
37
+ tolerations :
38
+ {{- if .Values.component.attachments.tolerations }}
39
+ {{ toYaml .Values.component.attachments.tolerations | nindent 8 }}
40
+ {{- else }}
41
+ {{ toYaml .Values.general.tolerations | nindent 8 }}
42
+ {{- end }}
43
+ {{- end }}
28
44
{{- if .Values.component.attachments.podServiceAccount }}
29
45
serviceAccount : {{ .Values.component.attachments.podServiceAccount | quote }}
30
46
serviceAccountName : {{ .Values.component.attachments.podServiceAccount | quote }}
Original file line number Diff line number Diff line change 25
25
app.kubernetes.io/component : events
26
26
{{ include "bitwarden.labels" . | indent 8 }}
27
27
spec :
28
+ {{- if or .Values.component.events.nodeSelector .Values.general.nodeSelector }}
29
+ nodeSelector :
30
+ {{- if .Values.component.events.nodeSelector }}
31
+ {{ toYaml .Values.component.events.nodeSelector | nindent 8 }}
32
+ {{- else }}
33
+ {{ toYaml .Values.general.nodeSelector | nindent 8 }}
34
+ {{- end }}
35
+ {{- end }}
36
+ {{- if or .Values.component.events.tolerations .Values.general.tolerations }}
37
+ tolerations :
38
+ {{- if .Values.component.events.tolerations }}
39
+ {{ toYaml .Values.component.events.tolerations | nindent 8 }}
40
+ {{- else }}
41
+ {{ toYaml .Values.general.tolerations | nindent 8 }}
42
+ {{- end }}
43
+ {{- end }}
28
44
{{- if .Values.component.events.podServiceAccount }}
29
45
serviceAccount : {{ .Values.component.events.podServiceAccount | quote }}
30
46
serviceAccountName : {{ .Values.component.events.podServiceAccount | quote }}
Original file line number Diff line number Diff line change 25
25
app.kubernetes.io/component : icons
26
26
{{ include "bitwarden.labels" . | indent 8 }}
27
27
spec :
28
+ {{- if or .Values.component.icons.nodeSelector .Values.general.nodeSelector }}
29
+ nodeSelector :
30
+ {{- if .Values.component.icons.nodeSelector }}
31
+ {{ toYaml .Values.component.icons.nodeSelector | nindent 8 }}
32
+ {{- else }}
33
+ {{ toYaml .Values.general.nodeSelector | nindent 8 }}
34
+ {{- end }}
35
+ {{- end }}
36
+ {{- if or .Values.component.icons.tolerations .Values.general.tolerations }}
37
+ tolerations :
38
+ {{- if .Values.component.icons.tolerations }}
39
+ {{ toYaml .Values.component.icons.tolerations | nindent 8 }}
40
+ {{- else }}
41
+ {{ toYaml .Values.general.tolerations | nindent 8 }}
42
+ {{- end }}
43
+ {{- end }}
28
44
{{- if .Values.component.icons.podServiceAccount }}
29
45
serviceAccount : {{ .Values.component.icons.podServiceAccount | quote }}
30
46
serviceAccountName : {{ .Values.component.icons.podServiceAccount | quote }}
Original file line number Diff line number Diff line change 25
25
app.kubernetes.io/component : identity
26
26
{{ include "bitwarden.labels" . | indent 8 }}
27
27
spec :
28
+ {{- if or .Values.component.identity.nodeSelector .Values.general.nodeSelector }}
29
+ nodeSelector :
30
+ {{- if .Values.component.identity.nodeSelector }}
31
+ {{ toYaml .Values.component.identity.nodeSelector | nindent 8 }}
32
+ {{- else }}
33
+ {{ toYaml .Values.general.nodeSelector | nindent 8 }}
34
+ {{- end }}
35
+ {{- end }}
36
+ {{- if or .Values.component.identity.tolerations .Values.general.tolerations }}
37
+ tolerations :
38
+ {{- if .Values.component.identity.tolerations }}
39
+ {{ toYaml .Values.component.identity.tolerations | nindent 8 }}
40
+ {{- else }}
41
+ {{ toYaml .Values.general.tolerations | nindent 8 }}
42
+ {{- end }}
43
+ {{- end }}
28
44
{{- if .Values.component.identity.podServiceAccount }}
29
45
serviceAccount : {{ .Values.component.identity.podServiceAccount | quote }}
30
46
serviceAccountName : {{ .Values.component.identity.podServiceAccount | quote }}
Original file line number Diff line number Diff line change 30
30
{{ toYaml . | indent 8 }}
31
31
{{- end }}
32
32
spec :
33
+ {{- with .Values.general.nodeSelector }}
34
+ nodeSelector :
35
+ {{- toYaml . | nindent 8 }}
36
+ {{- end }}
37
+ {{- with .Values.general.tolerations }}
38
+ tolerations :
39
+ {{- toYaml . | nindent 8 }}
40
+ {{- end }}
33
41
{{- if .Values.database.podServiceAccount }}
34
42
serviceAccount : {{ .Values.database.podServiceAccount | quote }}
35
43
serviceAccountName : {{ .Values.database.podServiceAccount | quote }}
Original file line number Diff line number Diff line change 25
25
app.kubernetes.io/component : notifications
26
26
{{ include "bitwarden.labels" . | indent 8 }}
27
27
spec :
28
+ {{- if or .Values.component.notifications.nodeSelector .Values.general.nodeSelector }}
29
+ nodeSelector :
30
+ {{- if .Values.component.notifications.nodeSelector }}
31
+ {{ toYaml .Values.component.notifications.nodeSelector | nindent 8 }}
32
+ {{- else }}
33
+ {{ toYaml .Values.general.nodeSelector | nindent 8 }}
34
+ {{- end }}
35
+ {{- end }}
36
+ {{- if or .Values.component.notifications.tolerations .Values.general.tolerations }}
37
+ tolerations :
38
+ {{- if .Values.component.notifications.tolerations }}
39
+ {{ toYaml .Values.component.notifications.tolerations | nindent 8 }}
40
+ {{- else }}
41
+ {{ toYaml .Values.general.tolerations | nindent 8 }}
42
+ {{- end }}
43
+ {{- end }}
28
44
{{- if .Values.component.notifications.podServiceAccount }}
29
45
serviceAccount : {{ .Values.component.notifications.podServiceAccount | quote }}
30
46
serviceAccountName : {{ .Values.component.notifications.podServiceAccount | quote }}
Original file line number Diff line number Diff line change 16
16
labels :
17
17
app.kubernetes.io/component : post-delete-hook
18
18
spec :
19
+ {{- with .Values.general.nodeSelector }}
20
+ nodeSelector :
21
+ {{- toYaml . | nindent 8 }}
22
+ {{- end }}
23
+ {{- with .Values.general.tolerations }}
24
+ tolerations :
25
+ {{- toYaml . | nindent 8 }}
26
+ {{- end }}
19
27
{{- if .Values.serviceAccount.name }}
20
28
serviceAccountName : " {{ .Values.serviceAccount.name }}"
21
29
{{- end }}
Original file line number Diff line number Diff line change 16
16
labels :
17
17
app.kubernetes.io/component : post-install-db-migrator-job
18
18
spec :
19
+ {{- with .Values.general.nodeSelector }}
20
+ nodeSelector :
21
+ {{- toYaml . | nindent 8 }}
22
+ {{- end }}
23
+ {{- with .Values.general.tolerations }}
24
+ tolerations :
25
+ {{- toYaml . | nindent 8 }}
26
+ {{- end }}
19
27
{{- if .Values.serviceAccount.name }}
20
28
serviceAccountName : " {{ .Values.serviceAccount.name }}"
21
29
{{- end }}
Original file line number Diff line number Diff line change 20
20
labels :
21
21
app.kubernetes.io/component : pre-install-db-migrator-job
22
22
spec :
23
+ {{- with .Values.general.nodeSelector }}
24
+ nodeSelector :
25
+ {{- toYaml . | nindent 8 }}
26
+ {{- end }}
27
+ {{- with .Values.general.tolerations }}
28
+ tolerations :
29
+ {{- toYaml . | nindent 8 }}
30
+ {{- end }}
23
31
{{- if .Values.serviceAccount.name }}
24
32
serviceAccountName : {{ .Values.serviceAccount.name | quote }}
25
33
{{- end }}
Original file line number Diff line number Diff line change 23
23
labels :
24
24
app.kubernetes.io/component : pre-install-hook
25
25
spec :
26
+ {{- with .Values.general.nodeSelector }}
27
+ nodeSelector :
28
+ {{- toYaml . | nindent 8 }}
29
+ {{- end }}
30
+ {{- with .Values.general.tolerations }}
31
+ tolerations :
32
+ {{- toYaml . | nindent 8 }}
33
+ {{- end }}
26
34
{{- if .Values.serviceAccount.name }}
27
35
serviceAccountName : {{ .Values.serviceAccount.name | quote }}
28
36
{{- end }}
Original file line number Diff line number Diff line change 19
19
labels :
20
20
app.kubernetes.io/component : pre-install-hook
21
21
spec :
22
+ {{- with .Values.general.nodeSelector }}
23
+ nodeSelector :
24
+ {{- toYaml . | nindent 8 }}
25
+ {{- end }}
26
+ {{- with .Values.general.tolerations }}
27
+ tolerations :
28
+ {{- toYaml . | nindent 8 }}
29
+ {{- end }}
22
30
{{- if .Values.serviceAccount.name }}
23
31
serviceAccountName : {{ .Values.serviceAccount.name | quote }}
24
32
{{- end }}
Original file line number Diff line number Diff line change 26
26
app.kubernetes.io/component : scim
27
27
{{ include "bitwarden.labels" . | indent 8 }}
28
28
spec :
29
+ {{- if or .Values.component.scim.nodeSelector .Values.general.nodeSelector }}
30
+ nodeSelector :
31
+ {{- if .Values.component.scim.nodeSelector }}
32
+ {{ toYaml .Values.component.scim.nodeSelector | nindent 8 }}
33
+ {{- else }}
34
+ {{ toYaml .Values.general.nodeSelector | nindent 8 }}
35
+ {{- end }}
36
+ {{- end }}
37
+ {{- if or .Values.component.scim.tolerations .Values.general.tolerations }}
38
+ tolerations :
39
+ {{- if .Values.component.scim.tolerations }}
40
+ {{ toYaml .Values.component.scim.tolerations | nindent 8 }}
41
+ {{- else }}
42
+ {{ toYaml .Values.general.tolerations | nindent 8 }}
43
+ {{- end }}
44
+ {{- end }}
29
45
{{- if .Values.component.scim.podServiceAccount }}
30
46
serviceAccount : {{ .Values.component.scim.podServiceAccount | quote }}
31
47
serviceAccountName : {{ .Values.component.scim.podServiceAccount | quote }}
Original file line number Diff line number Diff line change 25
25
app.kubernetes.io/component : sso
26
26
{{ include "bitwarden.labels" . | indent 8 }}
27
27
spec :
28
+ {{- if or .Values.component.sso.nodeSelector .Values.general.nodeSelector }}
29
+ nodeSelector :
30
+ {{- if .Values.component.sso.nodeSelector }}
31
+ {{ toYaml .Values.component.sso.nodeSelector | nindent 8 }}
32
+ {{- else }}
33
+ {{ toYaml .Values.general.nodeSelector | nindent 8 }}
34
+ {{- end }}
35
+ {{- end }}
36
+ {{- if or .Values.component.sso.tolerations .Values.general.tolerations }}
37
+ tolerations :
38
+ {{- if .Values.component.sso.tolerations }}
39
+ {{ toYaml .Values.component.sso.tolerations | nindent 8 }}
40
+ {{- else }}
41
+ {{ toYaml .Values.general.tolerations | nindent 8 }}
42
+ {{- end }}
43
+ {{- end }}
28
44
{{- if .Values.component.sso.podServiceAccount }}
29
45
serviceAccount : {{ .Values.component.sso.podServiceAccount | quote }}
30
46
serviceAccountName : {{ .Values.component.sso.podServiceAccount | quote }}
Original file line number Diff line number Diff line change 25
25
app.kubernetes.io/component : web
26
26
{{ include "bitwarden.labels" . | indent 8 }}
27
27
spec :
28
+ {{- if or .Values.component.web.nodeSelector .Values.general.nodeSelector }}
29
+ nodeSelector :
30
+ {{- if .Values.component.web.nodeSelector }}
31
+ {{ toYaml .Values.component.web.nodeSelector | nindent 8 }}
32
+ {{- else }}
33
+ {{ toYaml .Values.general.nodeSelector | nindent 8 }}
34
+ {{- end }}
35
+ {{- end }}
36
+ {{- if or .Values.component.web.tolerations .Values.general.tolerations }}
37
+ tolerations :
38
+ {{- if .Values.component.web.tolerations }}
39
+ {{ toYaml .Values.component.web.tolerations | nindent 8 }}
40
+ {{- else }}
41
+ {{ toYaml .Values.general.tolerations | nindent 8 }}
42
+ {{- end }}
43
+ {{- end }}
28
44
{{- if .Values.component.web.podServiceAccount }}
29
45
serviceAccount : {{ .Values.component.web.podServiceAccount | quote }}
30
46
serviceAccountName : {{ .Values.component.web.podServiceAccount | quote }}
You can’t perform that action at this time.
0 commit comments