Skip to content
Merged
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
13 changes: 13 additions & 0 deletions hack/generate-agent-helm-chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,19 @@ def update_copied_chart_files(version: str, image_repository: str, image_tag: st
image["tag"] = image_tag
values["image"] = image

values["podSecurityContext"] = {
"runAsNonRoot": True,
"seccompProfile": {"type": "RuntimeDefault"},
}
values["securityContext"] = {
"allowPrivilegeEscalation": False,
"capabilities": {"drop": ["ALL"]},
"privileged": False,
"readOnlyRootFilesystem": True,
"runAsNonRoot": True,
"seccompProfile": {"type": "RuntimeDefault"},
}

with values_path.open("w", encoding="utf-8") as file:
yaml.safe_dump(values, file, sort_keys=False)

Expand Down
6 changes: 0 additions & 6 deletions helm-charts/redhat-argocd-agent/0.9.0/src/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ serviceAccount:
annotations: {}
automountServiceAccountToken: true
podSecurityContext:
fsGroup: 999
fsGroupChangePolicy: OnRootMismatch
runAsGroup: 999
runAsNonRoot: true
runAsUser: 999
seccompProfile:
type: RuntimeDefault
securityContext:
Expand All @@ -44,9 +40,7 @@ securityContext:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsGroup: 999
runAsNonRoot: true
runAsUser: 999
seccompProfile:
type: RuntimeDefault
rbac:
Expand Down
Loading