Skip to content

Commit 8ef8993

Browse files
jparsaisvghadi
andauthored
build: update argocd-agent chart (#1008)
* build: update argocd-agent chart Signed-off-by: Jayendra Parsai <jparsai@redhat.com> * build: update argocd-agent chart Signed-off-by: Jayendra Parsai <jparsai@redhat.com> * Regenerate chart Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com> --------- Signed-off-by: Jayendra Parsai <jparsai@redhat.com> Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com> Co-authored-by: Siddhesh Ghadi <sghadi1203@gmail.com>
1 parent a23b748 commit 8ef8993

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

hack/generate-agent-helm-chart.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,19 @@ def update_copied_chart_files(version: str, image_repository: str, image_tag: st
9191
image["tag"] = image_tag
9292
values["image"] = image
9393

94+
values["podSecurityContext"] = {
95+
"runAsNonRoot": True,
96+
"seccompProfile": {"type": "RuntimeDefault"},
97+
}
98+
values["securityContext"] = {
99+
"allowPrivilegeEscalation": False,
100+
"capabilities": {"drop": ["ALL"]},
101+
"privileged": False,
102+
"readOnlyRootFilesystem": True,
103+
"runAsNonRoot": True,
104+
"seccompProfile": {"type": "RuntimeDefault"},
105+
}
106+
94107
with values_path.open("w", encoding="utf-8") as file:
95108
yaml.safe_dump(values, file, sort_keys=False)
96109

helm-charts/redhat-argocd-agent/0.9.0/src/values.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ serviceAccount:
3030
annotations: {}
3131
automountServiceAccountToken: true
3232
podSecurityContext:
33-
fsGroup: 999
34-
fsGroupChangePolicy: OnRootMismatch
35-
runAsGroup: 999
3633
runAsNonRoot: true
37-
runAsUser: 999
3834
seccompProfile:
3935
type: RuntimeDefault
4036
securityContext:
@@ -44,9 +40,7 @@ securityContext:
4440
- ALL
4541
privileged: false
4642
readOnlyRootFilesystem: true
47-
runAsGroup: 999
4843
runAsNonRoot: true
49-
runAsUser: 999
5044
seccompProfile:
5145
type: RuntimeDefault
5246
rbac:

0 commit comments

Comments
 (0)