Skip to content

Commit

Permalink
Added PSS to contrib/baseline and restricted as kustomize components
Browse files Browse the repository at this point in the history
Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com>
  • Loading branch information
biswajit-9776 committed Jun 21, 2024
1 parent a1dbf47 commit ceaacaf
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contrib/security/PSS/static/baseline/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
- ../../../../../common/kubeflow-namespace/base
- ../../../../../common/istio-1-22/istio-namespace/base

patches:
- path: patches/kubeflow-labels.yaml
- path: patches/istio-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: istio-system
labels:
pod-security.kubernetes.io/enforce: baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: kubeflow
labels:
pod-security.kubernetes.io/enforce: baseline
10 changes: 10 additions & 0 deletions contrib/security/PSS/static/restricted/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
- ../../../../../common/kubeflow-namespace/base
- ../../../../../common/istio-1-22/istio-namespace/base

patches:
- path: patches/kubeflow-labels.yaml
- path: patches/istio-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: istio-system
labels:
pod-security.kubernetes.io/enforce: restricted
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: kubeflow
labels:
pod-security.kubernetes.io/enforce: restricted

0 comments on commit ceaacaf

Please sign in to comment.