Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Add annotation support to pushgateway service #20351

Merged
merged 3 commits into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/prometheus-pushgateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0.1"
description: A Helm chart for prometheus pushgateway
name: prometheus-pushgateway
version: 1.2.13
version: 1.2.14
home: https://github.com/prometheus/pushgateway
sources:
- https://github.com/prometheus/pushgateway
Expand Down
1 change: 1 addition & 0 deletions stable/prometheus-pushgateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ The following table lists the configurable parameters of the pushgateway chart a
| `service.port` | The service port | `9091` |
| `service.nodePort` | The optional service node port when `service.type` is `NodePort` | `` |
| `service.targetPort` | The target port of the container | `9091` |
| `serviceAnnotations` | Annotations for the service | `{}` |
| `serviceLabels` | Labels for service | `{}` |
| `serviceAccount.create` | Specifies whether a service account should be created. | `true` |
| `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the fullname template | |
Expand Down
2 changes: 2 additions & 0 deletions stable/prometheus-pushgateway/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: v1
kind: Service
metadata:
name: {{ template "prometheus-pushgateway.fullname" . }}
annotations:
{{ .Values.serviceAnnotations | toYaml | indent 4 }}
labels:
{{ template "prometheus-pushgateway.defaultLabels" merge (dict "extraLabels" .Values.serviceLabels) . }}
spec:
Expand Down
3 changes: 3 additions & 0 deletions stable/prometheus-pushgateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ podAnnotations: {}
# Optional pod labels
podLabels: {}

# Optional service annotations
serviceAnnotations: {}

# Optional service labels
serviceLabels: {}

Expand Down