Skip to content

Commit 3e1f6d7

Browse files
authored
Fix Allowlist helper (#2125)
Fix Allowlist helper Co-authored-by: fanny.jiang <fanny.jiang@datadoghq.com>
1 parent 242e510 commit 3e1f6d7

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

charts/datadog-csi-driver/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.4.3
4+
5+
* Fix AllowlistSynchronizer helper
6+
37
## 0.4.2
48

59
* Add gke AllowlistSynchronizer

charts/datadog-csi-driver/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: datadog-csi-driver
33
description: Datadog CSI Driver helm chart
44
type: application
5-
version: 0.4.2
5+
version: 0.4.3
66
appVersion: "0.1.0"
77
maintainers:
88
- name: Datadog

charts/datadog-csi-driver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# datadog-csi-driver
22

3-
![Version: 0.4.2](https://img.shields.io/badge/Version-0.4.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
3+
![Version: 0.4.3](https://img.shields.io/badge/Version-0.4.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
44

55
Datadog CSI Driver helm chart
66

charts/datadog-csi-driver/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Create the name of the service account to use
7373
Check if target cluster supports GKE Autopilot WorkloadAllowlists.
7474
GKE Autopilot WorkloadAllowlists are supported in GKE versions >= 1.32.1-gke.1729000.
7575
*/}}
76-
{{- define "gke-autopilot-workloadallowlists-enabled" -}}
76+
{{- define "csi.gke-autopilot-workloadallowlists-enabled" -}}
7777
{{- if and (.Capabilities.APIVersions.Has "auto.gke.io/v1/AllowlistSynchronizer") (.Capabilities.APIVersions.Has "auto.gke.io/v1/WorkloadAllowlist") (semverCompare ">=v1.32.1-gke.1729000" .Capabilities.KubeVersion.Version) -}}
7878
true
7979
{{- else -}}

charts/datadog-csi-driver/templates/daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: DaemonSet
33
metadata:
44
name: {{ include "datadog-csi-driver.daemonsetName" . }}
55
namespace: {{ .Release.Namespace }}
6-
{{- if (eq (include "gke-autopilot-workloadallowlists-enabled" .) "true") }}
6+
{{- if (eq (include "csi.gke-autopilot-workloadallowlists-enabled" .) "true") }}
77
labels:
88
cloud.google.com/matching-allowlist: "datadog-datadog-csi-driver-daemonset-exemption-v1.0.1"
99
{{- end }}

charts/datadog-csi-driver/templates/gke_autopilot_allowlist_synchronizer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if (eq (include "gke-autopilot-workloadallowlists-enabled" .) "true") }}
1+
{{- if (eq (include "csi.gke-autopilot-workloadallowlists-enabled" .) "true") }}
22
apiVersion: auto.gke.io/v1
33
kind: AllowlistSynchronizer
44
metadata:

0 commit comments

Comments
 (0)