diff --git a/charts/test-krish-globalps/Chart.yaml b/charts/test-krish-globalps/Chart.yaml index 66549c40..b70805fb 100644 --- a/charts/test-krish-globalps/Chart.yaml +++ b/charts/test-krish-globalps/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: test-krish description: Pod Security Standards (baseline) policy set type: application -version: 0.6.6 +version: 0.6.7 appVersion: 0.1.0 keywords: - kubernetes diff --git a/charts/test-krish-globalps/pols/disallow-host-path.yaml b/charts/test-krish-globalps/pols/disallow-host-path.yaml deleted file mode 100644 index 85ef354e..00000000 --- a/charts/test-krish-globalps/pols/disallow-host-path.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: kyverno.io/v1 -kind: ClusterPolicy -metadata: - name: disallow-host-path - annotations: - policies.kyverno.io/title: Disallow hostPath - policies.kyverno.io/category: Pod Security Standards (Baseline) - policies.kyverno.io/severity: medium - policies.kyverno.io/subject: Pod,Volume - kyverno.io/kubernetes-version: "1.22-1.23" - policies.nirmata.io/remediation-docs: "https://docs.nirmata.io/policysets/podsecurity/baseline/disallow-host-path/" - policies.nirmata.io/remediation: "https://github.com/nirmata/kyverno-policies/tree/main/pod-security/baseline/disallow-host-path/remediate-disallow-host-path.yaml" - policies.kyverno.io/description: >- - HostPath volumes let Pods use host directories and volumes in containers. - Using host resources can be used to access shared data or escalate privileges - and should not be allowed. This policy ensures no hostPath volumes are in use. -spec: - validationFailureAction: Audit - background: true - rules: - - name: host-path - match: - any: - - resources: - kinds: - - Pod - validate: - message: >- - HostPath volumes are forbidden. - pattern: - spec: - =(volumes): - - X(hostPath): "null"