From e94b445b2951a594a275ef50def3f24bef4980a6 Mon Sep 17 00:00:00 2001 From: Drew Sirenko <68304519+AndrewSirenko@users.noreply.github.com> Date: Tue, 6 Feb 2024 18:04:23 +0000 Subject: [PATCH 1/2] Allow driver node daemonSet annotations to be configurable --- charts/aws-ebs-csi-driver/templates/_node.tpl | 4 ++++ charts/aws-ebs-csi-driver/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/charts/aws-ebs-csi-driver/templates/_node.tpl b/charts/aws-ebs-csi-driver/templates/_node.tpl index 7ae96608da..aefe87e273 100644 --- a/charts/aws-ebs-csi-driver/templates/_node.tpl +++ b/charts/aws-ebs-csi-driver/templates/_node.tpl @@ -8,6 +8,10 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "aws-ebs-csi-driver.labels" . | nindent 4 }} + {{- with .Values.node.daemonSetAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: {{- if or (kindIs "float64" .Values.node.revisionHistoryLimit) (kindIs "int64" .Values.node.revisionHistoryLimit) }} revisionHistoryLimit: {{ .Values.node.revisionHistoryLimit }} diff --git a/charts/aws-ebs-csi-driver/values.yaml b/charts/aws-ebs-csi-driver/values.yaml index 131ce3d5b0..78d3b87fd4 100644 --- a/charts/aws-ebs-csi-driver/values.yaml +++ b/charts/aws-ebs-csi-driver/values.yaml @@ -349,6 +349,7 @@ node: - a1.2xlarge - a1.4xlarge nodeSelector: {} + daemonSetAnnotations: {} podAnnotations: {} podLabels: {} tolerateAllTaints: true From ec5f68714e7a54545e8ea72a684e117cce18302b Mon Sep 17 00:00:00 2001 From: Drew Sirenko <68304519+AndrewSirenko@users.noreply.github.com> Date: Tue, 6 Feb 2024 18:32:33 +0000 Subject: [PATCH 2/2] Allow driver controller Deployment annotations to be configurable in helm chart --- charts/aws-ebs-csi-driver/templates/controller.yaml | 4 ++++ charts/aws-ebs-csi-driver/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/charts/aws-ebs-csi-driver/templates/controller.yaml b/charts/aws-ebs-csi-driver/templates/controller.yaml index 4d7eafad83..f9eca67ff5 100644 --- a/charts/aws-ebs-csi-driver/templates/controller.yaml +++ b/charts/aws-ebs-csi-driver/templates/controller.yaml @@ -6,6 +6,10 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "aws-ebs-csi-driver.labels" . | nindent 4 }} + {{- with .Values.controller.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.controller.replicaCount }} {{- if or (kindIs "float64" .Values.controller.revisionHistoryLimit) (kindIs "int64" .Values.controller.revisionHistoryLimit) }} diff --git a/charts/aws-ebs-csi-driver/values.yaml b/charts/aws-ebs-csi-driver/values.yaml index 78d3b87fd4..439d65e966 100644 --- a/charts/aws-ebs-csi-driver/values.yaml +++ b/charts/aws-ebs-csi-driver/values.yaml @@ -237,6 +237,7 @@ controller: logLevel: 2 userAgentExtra: "helm" nodeSelector: {} + deploymentAnnotations: {} podAnnotations: {} podLabels: {} priorityClassName: system-cluster-critical