Skip to content

Commit f18a21e

Browse files
committed
chore(controller): bump common 1.1.2
1 parent a38739f commit f18a21e

5 files changed

Lines changed: 22 additions & 45 deletions

File tree

charts/controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ appVersion: 1.0.0
55
dependencies:
66
- name: common
77
repository: oci://registry.drycc.cc/charts
8-
version: ~1.1.1
8+
version: ~1.1.2
99
description: Drycc Workflow Controller (API).
1010
maintainers:
1111
- name: Drycc Team

charts/controller/templates/controller-api-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ spec:
1818
app: drycc-controller-api
1919
template:
2020
metadata:
21-
labels:
21+
labels: {{- include "common.labels.standard" . | nindent 8 }}
2222
app: drycc-controller-api
2323
spec:
2424
affinity:
25-
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.api.podAffinityPreset.type "key" .Values.api.podAffinityPreset.key "values" .Values.api.podAffinityPreset.values ) | nindent 10 }}
26-
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.api.podAntiAffinityPreset.type "key" .Values.api.podAntiAffinityPreset.key "values" .Values.api.podAntiAffinityPreset.values ) | nindent 10 }}
25+
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.api.podAffinityPreset.type "component" "" "extraMatchLabels" .Values.api.podAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
26+
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.api.podAntiAffinityPreset.type "component" "" "extraMatchLabels" .Values.api.podAntiAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
2727
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.api.nodeAffinityPreset.type "key" .Values.api.nodeAffinityPreset.key "values" .Values.api.nodeAffinityPreset.values ) | nindent 10 }}
2828
serviceAccount: drycc-controller
2929
initContainers:

charts/controller/templates/controller-celery-deloyment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ spec:
1818
app: drycc-controller-celery
1919
template:
2020
metadata:
21-
labels:
21+
labels: {{- include "common.labels.standard" . | nindent 8 }}
2222
app: drycc-controller-celery
2323
spec:
2424
affinity:
25-
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.celery.podAffinityPreset.type "key" .Values.celery.podAffinityPreset.key "values" .Values.celery.podAffinityPreset.values ) | nindent 10 }}
26-
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.celery.podAntiAffinityPreset.type "key" .Values.celery.podAntiAffinityPreset.key "values" .Values.celery.podAntiAffinityPreset.values ) | nindent 10 }}
25+
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.celery.podAffinityPreset.type "component" "" "extraMatchLabels" .Values.celery.podAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
26+
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.celery.podAntiAffinityPreset.type "component" "" "extraMatchLabels" .Values.celery.podAntiAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
2727
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.celery.nodeAffinityPreset.type "key" .Values.celery.nodeAffinityPreset.key "values" .Values.celery.nodeAffinityPreset.values ) | nindent 10 }}
2828
serviceAccount: drycc-controller
2929
initContainers:

charts/controller/templates/controller-webhook-deloyment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ spec:
99
component: drycc-controller-webhook
1010
template:
1111
metadata:
12-
labels:
12+
labels: {{- include "common.labels.standard" . | nindent 8 }}
1313
component: drycc-controller-webhook
1414
spec:
1515
affinity:
16-
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.webhook.podAffinityPreset.type "key" .Values.webhook.podAffinityPreset.key "values" .Values.webhook.podAffinityPreset.values ) | nindent 10 }}
17-
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.webhook.podAntiAffinityPreset.type "key" .Values.webhook.podAntiAffinityPreset.key "values" .Values.webhook.podAntiAffinityPreset.values ) | nindent 10 }}
16+
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.webhook.podAffinityPreset.type "component" "" "extraMatchLabels" .Values.webhook.podAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
17+
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.webhook.podAntiAffinityPreset.type "component" "" "extraMatchLabels" .Values.webhook.podAntiAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
1818
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.webhook.nodeAffinityPreset.type "key" .Values.webhook.nodeAffinityPreset.key "values" .Values.webhook.nodeAffinityPreset.values ) | nindent 10 }}
1919
initContainers:
2020
- name: drycc-controller-init

charts/controller/values.yaml

Lines changed: 12 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,13 @@ api:
6767
values:
6868
- "true"
6969
podAffinityPreset:
70-
key: "security"
7170
type: ""
72-
values:
73-
- "drycc-security"
71+
extraMatchLabels:
72+
security: "drycc-security"
7473
podAntiAffinityPreset:
75-
key: "app"
7674
type: "soft"
77-
values:
78-
- "drycc-controller-api"
75+
extraMatchLabels:
76+
app: "drycc-controller-api"
7977

8078
celery:
8179
nodeAffinityPreset:
@@ -84,15 +82,13 @@ celery:
8482
values:
8583
- "true"
8684
podAffinityPreset:
87-
key: "security"
8885
type: ""
89-
values:
90-
- "drycc-security"
86+
extraMatchLabels:
87+
security: "drycc-security"
9188
podAntiAffinityPreset:
92-
key: "app"
9389
type: "soft"
94-
values:
95-
- "drycc-controller-celery"
90+
extraMatchLabels:
91+
app: "drycc-controller-celery"
9692

9793
webhook:
9894
nodeAffinityPreset:
@@ -101,32 +97,13 @@ webhook:
10197
values:
10298
- "true"
10399
podAffinityPreset:
104-
key: "security"
105-
type: ""
106-
values:
107-
- "drycc-security"
108-
podAntiAffinityPreset:
109-
key: "app"
110-
type: "soft"
111-
values:
112-
- "drycc-controller-webhook"
113-
114-
cronjob:
115-
nodeAffinityPreset:
116-
key: "drycc.cc/node"
117-
type: "soft"
118-
values:
119-
- "true"
120-
podAffinityPreset:
121-
key: "security"
122100
type: ""
123-
values:
124-
- "drycc-security"
101+
extraMatchLabels:
102+
security: "drycc-security"
125103
podAntiAffinityPreset:
126-
key: "app"
127104
type: "soft"
128-
values:
129-
- "drycc-controller-webhook"
105+
extraMatchLabels:
106+
component: "drycc-controller-webhook"
130107

131108
redis:
132109
replicas: 1

0 commit comments

Comments
 (0)