From 4df119fbc6c2e9702e92aff5c65afc5d5e3fc8b4 Mon Sep 17 00:00:00 2001 From: krishbajaj1609 Date: Thu, 6 Jun 2024 14:37:37 +0530 Subject: [PATCH] feature/global-policy-set : upgrade version for test --- charts/test-krish-globalps/Chart.yaml | 2 +- .../pols/disallow-host-path.yaml | 33 ------------------- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 charts/test-krish-globalps/pols/disallow-host-path.yaml diff --git a/charts/test-krish-globalps/Chart.yaml b/charts/test-krish-globalps/Chart.yaml index ab76ff44..cd9b4376 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.26 +version: 0.6.27 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"