Skip to content

Commit 5a18c58

Browse files
authored
Merge pull request #23 from jyaworski/podannotations
Add pod annotation support
2 parents a92c796 + b970fe7 commit 5a18c58

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed

kubernetes-ingress/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
apiVersion: v1
1616
name: kubernetes-ingress
17-
version: 1.3.1
17+
version: 1.3.2
1818
kubeVersion: ">=1.12.0-0"
1919
description: A Helm chart for HAProxy Kubernetes Ingress Controller
2020
keywords:

kubernetes-ingress/templates/controller-daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ spec:
4646
{{- if .Values.controller.podLabels }}
4747
{{ toYaml .Values.controller.podLabels | indent 8 }}
4848
{{- end }}
49+
{{- if .Values.controller.podAnnotations }}
50+
annotations:
51+
{{ toYaml .Values.controller.podAnnotations | indent 8 }}
52+
{{- end }}
4953
spec:
5054
serviceAccountName: {{ template "kubernetes-ingress.serviceAccountName" . }}
5155
{{- if $useHostPort }}

kubernetes-ingress/templates/controller-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ spec:
4646
{{- if .Values.controller.podLabels }}
4747
{{ toYaml .Values.controller.podLabels | indent 8 }}
4848
{{- end }}
49+
{{- if .Values.controller.podAnnotations }}
50+
annotations:
51+
{{ toYaml .Values.controller.podAnnotations | indent 8 }}
52+
{{- end }}
4953
spec:
5054
serviceAccountName: {{ template "kubernetes-ingress.serviceAccountName" . }}
5155
{{- if .Values.controller.imageCredentials.registry }}

kubernetes-ingress/templates/default-backend-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ spec:
4141
{{- if .Values.defaultBackend.podLabels }}
4242
{{ toYaml .Values.defaultBackend.podLabels | indent 8 }}
4343
{{- end }}
44+
{{- if .Values.defaultBackend.podAnnotations }}
45+
annotations:
46+
{{ toYaml .Values.defaultBackend.podAnnotations | indent 8 }}
47+
{{- end }}
4448
spec:
4549
containers:
4650
- name: {{ template "kubernetes-ingress.name" . }}-{{ .Values.defaultBackend.name }}

kubernetes-ingress/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ controller:
113113
podLabels: {}
114114
# key: value
115115

116+
## Additional annotations to add to the pod container metadata
117+
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
118+
podAnnotations: {}
119+
# key: value
120+
116121
## Ingress TLS secret, if enabled is true and secret is null then controller will use auto-generated secret otherwise provided secret is used
117122
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
118123
defaultTLSSecret:
@@ -326,6 +331,11 @@ defaultBackend:
326331
podLabels: {}
327332
# key: value
328333

334+
## Additional annotations to add to the pod container metadata
335+
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
336+
podAnnotations: {}
337+
# key: value
338+
329339
service:
330340
## Service ports
331341
## ref: https://kubernetes.io/docs/concepts/services-networking/service/

0 commit comments

Comments
 (0)