diff --git a/enforcer/CHANGELOG.md b/enforcer/CHANGELOG.md index c19fd3a3..107cff33 100644 --- a/enforcer/CHANGELOG.md +++ b/enforcer/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog All notable changes to this project will be documented in this file. +## 2022.4.23 ( Aug 29th, 2024 ) +* Fix path for TKGi platform ## 2022.4.22 ( Apr 30th, 2024 ) * SLK-79144 - Support gke-autopilot platform ## 2022.4.21 ( Apr 3rd, 2024 ) diff --git a/enforcer/Chart.yaml b/enforcer/Chart.yaml index e9e67f7c..09fa15f9 100644 --- a/enforcer/Chart.yaml +++ b/enforcer/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "2022.4" description: A Helm chart for the Aqua Enforcer name: enforcer -version: "2022.4.22" +version: "2022.4.23" icon: https://avatars3.githubusercontent.com/u/12783832?s=200&v=4 home: https://www.aquasec.com/ maintainers: diff --git a/enforcer/templates/_helpers.tpl b/enforcer/templates/_helpers.tpl index e1441351..1c6da32f 100644 --- a/enforcer/templates/_helpers.tpl +++ b/enforcer/templates/_helpers.tpl @@ -156,6 +156,8 @@ For gke-autopilot should be /var/autopilot/addon {{- define "varLibPrefix" -}} {{- if eq .Values.global.platform "gke-autopilot" -}} {{- printf "%s" "/var/autopilot/addon" -}} +{{- else if eq .Values.global.platform "tkgi" -}} +{{- printf "%s" "/var/vcap/data" -}} {{- else -}} {{- printf "%s" "/var/lib" -}} {{- end -}} diff --git a/enforcer/templates/enforcer-configmap.yaml b/enforcer/templates/enforcer-configmap.yaml index fc323c94..317e43cf 100644 --- a/enforcer/templates/enforcer-configmap.yaml +++ b/enforcer/templates/enforcer-configmap.yaml @@ -18,6 +18,9 @@ data: {{- if eq .Values.global.platform "gke-autopilot" }} AQUA_INSTALL_PATH: "/var/autopilot/addon/aquasec" AQUA_PRODUCT_PATH: "/var/autopilot/addon/aquasec" + {{- else if eq .Values.global.platform "tkgi" }} + AQUA_INSTALL_PATH: "/var/vcap/data/aquasec" + AQUA_PRODUCT_PATH: "/var/vcap/data/aquasec" {{- else }} AQUA_INSTALL_PATH: "/var/lib/aquasec" {{- end }}