Skip to content

Commit 9db2eb9

Browse files
authored
Add controller.metrics.serviceMonitor.annotations in Helm chart (#9677)
Signed-off-by: Mathieu Parent <math.parent@gmail.com>
1 parent 707a5a0 commit 9db2eb9

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

charts/ingress-nginx/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ As of version `1.26.0` of this chart, by simply not providing any clusterIP valu
369369
| controller.metrics.service.servicePort | int | `10254` | |
370370
| controller.metrics.service.type | string | `"ClusterIP"` | |
371371
| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | |
372+
| controller.metrics.serviceMonitor.annotations | object | `{}` | |
372373
| controller.metrics.serviceMonitor.enabled | bool | `false` | |
373374
| controller.metrics.serviceMonitor.metricRelabelings | list | `[]` | |
374375
| controller.metrics.serviceMonitor.namespace | string | `""` | |

charts/ingress-nginx/templates/controller-servicemonitor.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ metadata:
1414
{{- if .Values.controller.metrics.serviceMonitor.additionalLabels }}
1515
{{- toYaml .Values.controller.metrics.serviceMonitor.additionalLabels | nindent 4 }}
1616
{{- end }}
17+
{{- if .Values.controller.metrics.serviceMonitor.annotations }}
18+
annotations: {{ toYaml .Values.controller.metrics.serviceMonitor.annotations | nindent 4 }}
19+
{{- end }}
1720
spec:
1821
endpoints:
1922
- port: {{ .Values.controller.metrics.portName }}

charts/ingress-nginx/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,7 @@ controller:
867867
serviceMonitor:
868868
enabled: false
869869
additionalLabels: {}
870+
annotations: {}
870871
## The label to use to retrieve the job name from.
871872
## jobLabel: "app.kubernetes.io/name"
872873
namespace: ""

0 commit comments

Comments
 (0)