Skip to content

Commit

Permalink
Adding possibility to add annotations to Service resource
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenekainara committed Oct 31, 2023
1 parent b3d0004 commit 6482433
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ include "sql-exporter.fullname" . }}
labels:
{{- include "sql-exporter.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
4 changes: 4 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ fullnameOverride: ""
service:
type: ClusterIP
port: 80
annotations: {}
# example of prometheus usage
# prometheus.io/scrape: "true"
# prometheus.io/path: "/metrics"
resources:
{}
# limits:
Expand Down

0 comments on commit 6482433

Please sign in to comment.