Skip to content
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
8 changes: 8 additions & 0 deletions charts/p1monitor/sysdig/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resources:
- all.yaml
patches:
- path: ./patches/1661950584_remediate_SecurityContext_runAsUser_for_workload_p1monitor.yaml
target:
kind: Deployment
name: p1monitor
namespace: p1monitor
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kind: .
metadata:
name: .
spec:
template:
spec:
containers:
- name: p1monitor
securityContext:
runAsUser: 1000
10 changes: 10 additions & 0 deletions charts/p1monitor/sysdig/sysdig_helm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# ============================================================================
# Sysdig requires this file to apply remediation patches to your Helm chart.
# Run "helm install --post-renderer=sysdig_helm.sh" to use Sysdig patches.
# For more information, follow the link: https://docs.sysdig.com/en/docs/sysdig-secure
# ============================================================================
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cat <&0 > "$DIR"/all.yaml
kustomize build "$DIR" && rm "$DIR"/all.yaml