Skip to content

Commit

Permalink
chore: merge pod labels and annotations with common labels and annota…
Browse files Browse the repository at this point in the history
…tions (#139)
  • Loading branch information
ravisingal authored Sep 25, 2024
1 parent 0dfb06a commit ac09307
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions helm/templates/hypertrace-collector/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,12 @@ spec:
prometheus.io/path: "/metrics"
prometheus.io/port: "8888"
prometheus.io/scrape: "true"
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.commonPodAnnotations }}
{{- with merge .Values.podAnnotations .Values.commonPodAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
release: {{ .Release.Name }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.commonPodLabels }}
{{- with merge .Values.podLabels .Values.commonPodLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
Expand Down
10 changes: 2 additions & 8 deletions helm/templates/hypertrace-metrics-collector/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,12 @@ spec:
prometheus.io/path: "/metrics"
prometheus.io/port: "8888"
prometheus.io/scrape: "true"
{{- with .Values.metrics.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.commonPodAnnotations }}
{{- with merge .Values.metrics.podAnnotations .Values.commonPodAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
release: {{ .Release.Name }}
{{- with .Values.metrics.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.commonPodLabels }}
{{- with merge .Values.metrics.podLabels .Values.commonPodLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
Expand Down

0 comments on commit ac09307

Please sign in to comment.