Skip to content

Commit ffecec6

Browse files
committed
chore(redis): bump common 1.1.2
1 parent adbfc4b commit ffecec6

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

charts/redis/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: A Redis database for use inside a Kubernetes cluster.
1010
maintainers:
1111
- name: Drycc Team

charts/redis/templates/redis-statefulset.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ spec:
1515
app: drycc-redis
1616
template:
1717
metadata:
18-
labels:
18+
labels: {{- include "common.labels.standard" . | nindent 8 }}
1919
app: drycc-redis
2020
spec:
2121
affinity:
22-
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAffinityPreset.type "key" .Values.podAffinityPreset.key "values" .Values.podAffinityPreset.values ) | nindent 10 }}
23-
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset.type "key" .Values.podAntiAffinityPreset.key "values" .Values.podAntiAffinityPreset.values ) | nindent 10 }}
22+
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAffinityPreset.type "component" "" "extraMatchLabels" .Values.podAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
23+
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset.type "component" "" "extraMatchLabels" .Values.podAntiAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
2424
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.nodeAffinityPreset.type "key" .Values.nodeAffinityPreset.key "values" .Values.nodeAffinityPreset.values ) | nindent 10 }}
2525
containers:
2626
- name: drycc-redis

charts/redis/values.yaml

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

1414
podAffinityPreset:
15-
key: "security"
1615
type: ""
17-
values:
18-
- "drycc-security"
16+
extraMatchLabels:
17+
security: "drycc-security"
1918

2019
podAntiAffinityPreset:
21-
key: "app"
2220
type: "soft"
23-
values:
24-
- "drycc-redis"
21+
extraMatchLabels:
22+
app: "drycc-redis"
2523

2624
# The following parameters are configured only when using an on-cluster Redis instance
2725
replicas: 1

0 commit comments

Comments
 (0)