Skip to content

Commit ebe572a

Browse files
authored
Merge pull request #6 from jianxiaoguo/main
feat(helmbroker): add affinity
2 parents 1180910 + 414836b commit ebe572a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

charts/helmbroker/templates/helmbroker-celery.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
app: drycc-helmbroker-celery
2323
spec:
2424
serviceAccount: drycc-helmbroker
25+
{{- if .Values.global.common }}
26+
{{- include "common.affinity" (dict "key" "app" "values" (list "drycc-helmbroker-celery")) | indent 6 }}
27+
{{- end }}
2528
containers:
2629
- name: drycc-helmbroker-celery
2730
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/helmbroker:{{.Values.imageTag}}
@@ -33,4 +36,4 @@ spec:
3336
{{- include "helmbroker.limits" . | indent 10 }}
3437
{{- include "helmbroker.envs" . | indent 10 }}
3538
{{- include "helmbroker.volumeMounts" . | indent 10 }}
36-
{{- include "helmbroker.volumes" . | indent 6 }}
39+
{{- include "helmbroker.volumes" . | indent 6 }}

charts/helmbroker/templates/helmbroker-deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ spec:
2121
labels:
2222
app: drycc-helmbroker
2323
spec:
24+
{{- if .Values.global.common }}
25+
{{- include "common.affinity" (dict "key" "app" "values" (list "drycc-helmbroker")) | indent 6 }}
26+
{{- end }}
2427
serviceAccount: drycc-helmbroker
2528
initContainers:
2629
- name: loader
@@ -55,4 +58,4 @@ spec:
5558
{{- include "helmbroker.limits" . | indent 10 }}
5659
{{- include "helmbroker.envs" . | indent 10 }}
5760
{{- include "helmbroker.volumeMounts" . | indent 10 }}
58-
{{- include "helmbroker.volumes" . | indent 6 }}
61+
{{- include "helmbroker.volumes" . | indent 6 }}

0 commit comments

Comments
 (0)