Skip to content

Commit 02009ea

Browse files
committed
fix
1 parent 6e484b2 commit 02009ea

File tree

12 files changed

+22
-21
lines changed

12 files changed

+22
-21
lines changed

charts/self-host/templates/admin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ metadata:
1313
{{ toYaml . | indent 4 }}
1414
{{- end }}
1515
spec:
16-
{{ include "bitwarden.podCoLocation.affinity" . | indent 2 }}
1716
replicas: 1
1817
strategy:
1918
type: "{{ .Values.component.admin.deploymentStrategy }}"
@@ -27,6 +26,7 @@ spec:
2726
app: {{ template "bitwarden.admin" . }}
2827
{{ include "bitwarden.labels" . | indent 8 }}
2928
spec:
29+
{{ include "bitwarden.podCoLocation.affinity" . | indent 6 }}
3030
{{- if .Values.component.admin.podServiceAccount }}
3131
serviceAccount: "{{ .Values.component.admin.podServiceAccount }}"
3232
serviceAccountName: "{{ .Values.component.admin.podServiceAccount }}"

charts/self-host/templates/api.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ metadata:
1212
{{ toYaml . | indent 4 }}
1313
{{- end }}
1414
spec:
15-
{{ include "bitwarden.podCoLocation.affinity" . | indent 2 }}
1615
replicas: 1
1716
strategy:
1817
type: "{{ .Values.component.api.deploymentStrategy }}"

charts/self-host/templates/attachments.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
{{ toYaml . | indent 4 }}
1313
{{- end }}
1414
spec:
15-
{{ include "bitwarden.podCoLocation.affinity" . | indent 2 }}
15+
1616
replicas: 1
1717
strategy:
1818
type: "{{ .Values.component.attachments.deploymentStrategy }}"
@@ -26,6 +26,7 @@ spec:
2626
app.kubernetes.io/component: attachments
2727
{{ include "bitwarden.labels" . | indent 8 }}
2828
spec:
29+
{{ include "bitwarden.podCoLocation.affinity" . | indent 6 }}
2930
{{- if .Values.component.attachments.podServiceAccount }}
3031
serviceAccount: "{{ .Values.component.attachments.podServiceAccount }}"
3132
serviceAccountName: "{{ .Values.component.attachments.podServiceAccount }}"

charts/self-host/templates/events.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
{{ toYaml . | indent 4 }}
1313
{{- end }}
1414
spec:
15-
{{ include "bitwarden.podCoLocation.affinity" . | indent 2 }}
15+
1616
replicas: 1
1717
strategy:
1818
type: "{{ .Values.component.events.deploymentStrategy }}"
@@ -26,6 +26,7 @@ spec:
2626
app.kubernetes.io/component: events
2727
{{ include "bitwarden.labels" . | indent 8 }}
2828
spec:
29+
{{ include "bitwarden.podCoLocation.affinity" . | indent 6 }}
2930
{{- if .Values.component.events.podServiceAccount }}
3031
serviceAccount: "{{ .Values.component.events.podServiceAccount }}"
3132
serviceAccountName: "{{ .Values.component.events.podServiceAccount }}"

charts/self-host/templates/helpers.tpl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ app.kubernetes.io/name: {{ template "bitwarden.name" . }}
6565
app.kubernetes.io/managed-by: {{ .Release.Service }}
6666
app.kubernetes.io/instance: {{ .Release.Name }}
6767
helm.sh/chart: {{ template "bitwarden.chart" . }}
68-
{{- if eq (.Values.general.volumeAccessMode "ReadWriteOnce") }}
68+
{{- if eq .Values.general.volumeAccessMode "ReadWriteOnce" }}
6969
app.kubernetes.io/storage: "ReadWriteOnce"
7070
{{- end -}}
7171
{{- if .Values.general.labels }}
@@ -244,16 +244,16 @@ Name of SCIM components
244244

245245

246246
{{- define "bitwarden.podCoLocation.affinity" -}}
247-
{{- if eq (.Values.general.volumeAccessMode "ReadWriteOnce") }}
247+
{{- if eq .Values.general.volumeAccessMode "ReadWriteOnce" }}
248248
affinity:
249-
podAffinity:
249+
podAffinity:
250250
requiredDuringSchedulingIgnoredDuringExecution:
251-
- labelSelector:
252-
matchExpressions:
253-
- key: app.kubernetes.io/storage
254-
operator: In
255-
values:
256-
- ReadWriteOnce
257-
topologyKey: "kubernetes.io/hostname"
251+
- labelSelector:
252+
matchExpressions:
253+
- key: app.kubernetes.io/storage
254+
operator: In
255+
values:
256+
- ReadWriteOnce
257+
topologyKey: "kubernetes.io/hostname"
258258
{{- end -}}
259259
{{- end -}}

charts/self-host/templates/icons.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ metadata:
1212
{{ toYaml . | indent 4 }}
1313
{{- end }}
1414
spec:
15-
{{ include "bitwarden.podCoLocation.affinity" . | indent 2 }}
1615
replicas: 1
1716
strategy:
1817
type: "{{ .Values.component.icons.deploymentStrategy }}"
@@ -26,6 +25,7 @@ spec:
2625
app.kubernetes.io/component: icons
2726
{{ include "bitwarden.labels" . | indent 8 }}
2827
spec:
28+
{{ include "bitwarden.podCoLocation.affinity" . | indent 6 }}
2929
{{- if .Values.component.icons.podServiceAccount }}
3030
serviceAccount: "{{ .Values.component.icons.podServiceAccount }}"
3131
serviceAccountName: "{{ .Values.component.icons.podServiceAccount }}"

charts/self-host/templates/identity.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ metadata:
1212
{{ toYaml . | indent 4 }}
1313
{{- end }}
1414
spec:
15-
{{ include "bitwarden.podCoLocation.affinity" . | indent 2 }}
1615
replicas: 1
1716
strategy:
1817
type: "{{ .Values.component.identity.deploymentStrategy }}"
@@ -26,6 +25,7 @@ spec:
2625
app.kubernetes.io/component: identity
2726
{{ include "bitwarden.labels" . | indent 8 }}
2827
spec:
28+
{{ include "bitwarden.podCoLocation.affinity" . | indent 6 }}
2929
{{- if .Values.component.identity.podServiceAccount }}
3030
serviceAccount: "{{ .Values.component.identity.podServiceAccount }}"
3131
serviceAccountName: "{{ .Values.component.identity.podServiceAccount }}"

charts/self-host/templates/notifications.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ metadata:
1212
{{ toYaml . | indent 4 }}
1313
{{- end }}
1414
spec:
15-
{{ include "bitwarden.podCoLocation.affinity" . | indent 2 }}
1615
replicas: 1
1716
strategy:
1817
type: "{{ .Values.component.notifications.deploymentStrategy }}"
@@ -26,6 +25,7 @@ spec:
2625
app.kubernetes.io/component: notifications
2726
{{ include "bitwarden.labels" . | indent 8 }}
2827
spec:
28+
{{ include "bitwarden.podCoLocation.affinity" . | indent 6 }}
2929
{{- if .Values.component.notifications.podServiceAccount }}
3030
serviceAccount: "{{ .Values.component.notifications.podServiceAccount }}"
3131
serviceAccountName: "{{ .Values.component.notifications.podServiceAccount }}"

charts/self-host/templates/post-install-db-migrator-job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
labels:
1717
app.kubernetes.io/component: post-install-db-migrator-job
1818
spec:
19-
{{- if and (.Values.database.enabled) ( eq (.Values.general.volumeAccessMode "ReadWriteOnce") }}
19+
{{- if and (.Values.database.enabled) ( eq .Values.general.volumeAccessMode "ReadWriteOnce") }}
2020
affinity:
2121
podAffinity:
2222
requiredDuringSchedulingIgnoredDuringExecution:

charts/self-host/templates/pre-install-db-migrator-job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
labels:
2121
app.kubernetes.io/component: pre-install-db-migrator-job
2222
spec:
23-
{{- if and (.Values.database.enabled) ( eq (.Values.general.volumeAccessMode "ReadWriteOnce") }}
23+
{{- if and (.Values.database.enabled) (eq .Values.general.volumeAccessMode "ReadWriteOnce") }}
2424
affinity:
2525
podAffinity:
2626
requiredDuringSchedulingIgnoredDuringExecution:

0 commit comments

Comments
 (0)