Skip to content

Commit c7ad843

Browse files
krrrr38Timothy-Dougherty
authored andcommitted
helm: add deployment annotation (kubernetes-sigs#2611)
Signed-off-by: krrrr38 <[email protected]>
1 parent 21b226f commit c7ad843

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

helm/aws-load-balancer-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: aws-load-balancer-controller
33
description: AWS Load Balancer Controller Helm chart for Kubernetes
4-
version: 1.4.1
4+
version: 1.4.2
55
appVersion: v2.4.1
66
home: https://github.com/aws/eks-charts
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png

helm/aws-load-balancer-controller/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ The default values set by the application itself can be confirmed [here](https:/
178178
| `tolerations` | Controller pod toleration for taints | `{}` |
179179
| `affinity` | Affinity for pod assignment (string or map) (soft affinity if string "default", set explicitly if map) | `default` |
180180
| `topologySpreadConstraints` | Topology Spread Constraints for pod assignment | `{}` |
181+
| `deploymentAnnotations` | Annotations to add to deployment | `{}` |
181182
| `podAnnotations` | Annotations to add to each pod | `{}` |
182183
| `podLabels` | Labels to add to each pod | `{}` |
183184
| `rbac.create` | if `true`, create and use RBAC resources | `true` |

helm/aws-load-balancer-controller/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ kind: Deployment
33
metadata:
44
name: {{ include "aws-load-balancer-controller.fullname" . }}
55
namespace: {{ .Release.Namespace }}
6+
{{- if .Values.deploymentAnnotations }}
7+
annotations:
8+
{{- toYaml .Values.deploymentAnnotations | nindent 4 }}
9+
{{- end }}
610
labels:
711
{{- include "aws-load-balancer-controller.labels" . | nindent 4 }}
812
spec:

helm/aws-load-balancer-controller/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ affinity: {}
7070
# more details here: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
7171
topologySpreadConstraints: {}
7272

73+
deploymentAnnotations: {}
74+
7375
podAnnotations: {}
7476

7577
podLabels: {}

helm/aws-load-balancer-controller/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ updateStrategy: {}
9191
# serviceAnnotations contains annotations to be added to the provisioned webhook service resource
9292
serviceAnnotations: {}
9393

94+
# deploymentAnnotations contains annotations for the controller deployment
95+
deploymentAnnotations: {}
96+
9497
podAnnotations: {}
9598

9699
podLabels: {}

0 commit comments

Comments
 (0)