Skip to content

Commit

Permalink
add dedicated label to metrics service and servicemonitor (#1430)
Browse files Browse the repository at this point in the history
**Description of the change**

Add a dedicated label to the metrics service and servicemonitor within
the helmchart template.

fixes #1423 

Signed-off-by: HaveFun83 <[email protected]>
  • Loading branch information
HaveFun83 authored Jan 18, 2024
1 parent 75e457f commit 2d660c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions helm/sealed-secrets/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ metadata:
{{- if .Values.commonLabels }}
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
{{- end }}
app.kubernetes.io/component: metrics
spec:
type: {{ .Values.metrics.service.type }}
ports:
Expand Down
4 changes: 3 additions & 1 deletion helm/sealed-secrets/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ spec:
matchNames:
- {{ include "sealed-secrets.namespace" . }}
selector:
matchLabels: {{- include "sealed-secrets.matchLabels" . | nindent 6 }}
matchLabels:
{{- include "sealed-secrets.matchLabels" . | nindent 6 }}
app.kubernetes.io/component: metrics
{{- end }}

0 comments on commit 2d660c0

Please sign in to comment.