Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Aqua Enforcer data path for TKGi platform #889

Open
wants to merge 1 commit into
base: 2022.4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions enforcer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion enforcer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions enforcer/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down
3 changes: 3 additions & 0 deletions enforcer/templates/enforcer-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down