Skip to content

Commit a17f0a9

Browse files
authored
Merge pull request #22 from jianxiaoguo/main
chore(monitor): use common affinity template
2 parents 850c118 + 023275a commit a17f0a9

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

.drone/drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ steps:
142142
commands:
143143
- IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
144144
- sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/monitor/values.yaml
145-
- helm package charts/monitor --version ${DRONE_TAG:-v1.0.0}
145+
- helm package -u charts/monitor --version ${DRONE_TAG:-v1.0.0}
146146
- curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@monitor-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
147147
environment:
148148
CHARTMUSEUM_USERNAME:

charts/monitor/Chart.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: monitor
22
home: https://github.com/drycc/monitor
3-
version: v1.0.0
3+
apiVersion: v2
4+
dependencies:
5+
- name: common
6+
repository: https://charts.drycc.cc/stable
7+
version: 1.x.x
48
description: Monitoring for Drycc Workflow.
59
maintainers:
610
- name: Drycc Team
711
email: engineering@drycc.com
12+
version: v1.0.0

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ spec:
2222
labels:
2323
app: drycc-monitor-grafana
2424
spec:
25-
{{- if .Values.global.common }}
26-
{{- include "common.affinity" (dict "key" "app" "values" (list "drycc-monitor-grafana")) | indent 6 }}
27-
{{- end }}
25+
{{- include "common.affinities.nodes.soft" (dict "key" "app" "values" (list "drycc-monitor-grafana")) | indent 6 }}
2826
securityContext:
2927
fsGroup: 1001
3028
runAsGroup: 1001

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ spec:
2121
labels:
2222
app: drycc-monitor-telegraf
2323
spec:
24-
{{- if .Values.global.common }}
25-
{{- include "common.affinity" (dict "key" "app" "values" (list "drycc-monitor-telegraf")) | indent 6 }}
26-
{{- end }}
24+
{{- include "common.affinities.nodes.soft" (dict "key" "app" "values" (list "drycc-monitor-telegraf")) | indent 6 }}
2725
securityContext:
2826
fsGroup: 1001
2927
runAsGroup: 1001

0 commit comments

Comments
 (0)