Skip to content

Commit 4f05056

Browse files
committed
chore(database): bump common 1.1.2
1 parent bb5a851 commit 4f05056

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

charts/database/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ appVersion: 1.0.0
44
dependencies:
55
- name: common
66
repository: oci://registry.drycc.cc/charts
7-
version: ~1.1.1
7+
version: ~1.1.2
88
home: https://github.com/drycc/database
99
version: v1.1.0
1010
description: A PostgreSQL database used by Drycc Workflow.

charts/database/templates/database-statefulset.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ spec:
1616
cluster-name: drycc-database
1717
template:
1818
metadata:
19-
labels:
19+
labels: {{- include "common.labels.standard" . | nindent 8 }}
2020
app: drycc-database
2121
cluster-name: drycc-database
2222
spec:
2323
affinity:
24-
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAffinityPreset.type "key" .Values.podAffinityPreset.key "values" .Values.podAffinityPreset.values ) | nindent 10 }}
25-
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset.type "key" .Values.podAntiAffinityPreset.key "values" .Values.podAntiAffinityPreset.values ) | nindent 10 }}
24+
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAffinityPreset.type "component" "" "extraMatchLabels" .Values.podAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
25+
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset.type "component" "" "extraMatchLabels" .Values.podAntiAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
2626
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.nodeAffinityPreset.type "key" .Values.nodeAffinityPreset.key "values" .Values.nodeAffinityPreset.values ) | nindent 10 }}
2727
serviceAccountName: drycc-database
2828
containers:

charts/database/values.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ nodeAffinityPreset:
1616
- "true"
1717

1818
podAffinityPreset:
19-
key: "security"
2019
type: ""
21-
values:
22-
- "drycc-security"
20+
extraMatchLabels:
21+
security: "drycc-security"
2322

2423
podAntiAffinityPreset:
25-
key: "app"
2624
type: "soft"
27-
values:
28-
- "drycc-database"
25+
extraMatchLabels:
26+
app: "drycc-database"
2927

3028
debug: "false"
3129
timeout: "1200"

0 commit comments

Comments
 (0)