Skip to content

Commit

Permalink
namespace policies for ingestion
Browse files Browse the repository at this point in the history
  • Loading branch information
abimichel committed Mar 12, 2024
1 parent f673c24 commit 0ceabb2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
23 changes: 23 additions & 0 deletions oc/auto-label-ingestion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: kyverno.io/v1
kind: Policy
metadata:
name: add-ingestion-labels
spec:
background: false
failurePolicy: Ignore
rules:
- match:
any:
- resources:
kinds:
- Pod
selector:
matchLabels:
task_id: ingestion_task
mutate:
patchStrategicMerge:
metadata:
labels:
DataClass: High
name: add-data-class-label
validationFailureAction: audit
16 changes: 16 additions & 0 deletions oc/net-pol-ingestion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: allow-openmetadata-ingestion
spec:
podSelector:
matchLabels:
task_id: ingestion_task
ingress:
- {}
egress:
- {}
policyTypes:
- Ingress
- Egress
status: {}

0 comments on commit 0ceabb2

Please sign in to comment.