Skip to content

Commit

Permalink
chore: adding namespace metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Borens <michael.borens@contentsquare.com>
  • Loading branch information
micborens committed Feb 12, 2024
1 parent 3b3ba0f commit 4dd3541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/metrics/metrics-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ template "harbor.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
groups:
{{- include "harbor.ruleGroupToYaml" (include "harbor.rules" . | fromYaml).groups | indent 2 }}
Expand Down
1 change: 1 addition & 0 deletions templates/metrics/metrics-svcmon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "harbor.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{ include "harbor.labels" . | nindent 4 }}
{{- if .Values.metrics.serviceMonitor.additionalLabels }}
{{ toYaml .Values.metrics.serviceMonitor.additionalLabels | indent 4 }}
Expand Down

0 comments on commit 4dd3541

Please sign in to comment.