Skip to content

Commit

Permalink
chore(helm): Use chart name as part-of label
Browse files Browse the repository at this point in the history
  • Loading branch information
vmercierfr committed Nov 7, 2023
1 parent c7f998a commit 6327ea1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configs/helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ helm.sh/chart: {{ include "prometheus-rds-exporter.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/component: exporter
app.kubernetes.io/part-of: database-monitoring-framework
app.kubernetes.io/part-of: {{ template "prometheus-rds-exporter.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $key, $value := .Values.additionalLabels }}
{{ $key }}: {{ $value | quote }}
Expand Down
3 changes: 3 additions & 0 deletions configs/helm/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ tests:
- equal:
path: metadata.name
value: RELEASE-NAME-prometheus-rds-exporter-chart
- equal:
path: spec.template.metadata.labels["app.kubernetes.io/part-of"]
value: prometheus-rds-exporter-chart
- equal:
path: spec.template.spec.containers[0].image
value: public.ecr.aws/qonto/prometheus-rds-exporter:0.0.0
Expand Down

0 comments on commit 6327ea1

Please sign in to comment.