Skip to content

Commit 473b0c5

Browse files
committed
chore(monitor): bump common 1.1.2
1 parent 7367f3d commit 473b0c5

4 files changed

Lines changed: 13 additions & 17 deletions

File tree

charts/monitor/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: Monitoring for Drycc Workflow.
1010
maintainers:
1111
- name: Drycc Team

charts/monitor/templates/monitor-grafana-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ spec:
1919
app: drycc-monitor-grafana
2020
template:
2121
metadata:
22-
labels:
22+
labels: {{- include "common.labels.standard" . | nindent 8 }}
2323
app: drycc-monitor-grafana
2424
spec:
2525
affinity:
26-
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.grafana.podAffinityPreset.type "key" .Values.grafana.podAffinityPreset.key "values" .Values.grafana.podAffinityPreset.values ) | nindent 10 }}
27-
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.grafana.podAntiAffinityPreset.type "key" .Values.grafana.podAntiAffinityPreset.key "values" .Values.grafana.podAntiAffinityPreset.values ) | nindent 10 }}
26+
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.grafana.podAffinityPreset.type "component" "" "extraMatchLabels" .Values.grafana.podAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
27+
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.grafana.podAntiAffinityPreset.type "component" "" "extraMatchLabels" .Values.grafana.podAntiAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
2828
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.grafana.nodeAffinityPreset.type "key" .Values.grafana.nodeAffinityPreset.key "values" .Values.grafana.nodeAffinityPreset.values ) | nindent 10 }}
2929
securityContext:
3030
fsGroup: 1001

charts/monitor/templates/monitor-telegraf-daemon.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
{{- end }}
1717
template:
1818
metadata:
19-
labels:
19+
labels: {{- include "common.labels.standard" . | nindent 8 }}
2020
app: drycc-monitor-telegraf
2121
spec:
2222
securityContext:

charts/monitor/values.yaml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ grafana:
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-monitor-grafana"
21+
extraMatchLabels:
22+
app: "drycc-monitor-grafana"
2523

2624
# Service
2725
service:
@@ -57,16 +55,14 @@ telegraf:
5755
- "true"
5856

5957
podAffinityPreset:
60-
key: "security"
6158
type: ""
62-
values:
63-
- "drycc-security"
59+
extraMatchLabels:
60+
security: "drycc-security"
6461

6562
podAntiAffinityPreset:
66-
key: "app"
6763
type: "soft"
68-
values:
69-
- "drycc-monitor-telegraf"
64+
extraMatchLabels:
65+
app: "drycc-monitor-telegraf"
7066

7167
redis:
7268
replicas: 1

0 commit comments

Comments
 (0)