Skip to content

Commit

Permalink
Add NetworkPolicy for WorkloadCluster Ip Job (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergesundheit authored Oct 31, 2024
1 parent af146cc commit eb5ab7f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Add NetworkPolicy for WorkloadCluster Ip Job

## [0.6.1] - 2024-10-30

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ roleRef:
name: "{{ .Release.Name }}-read-write-configmap"
apiGroup: rbac.authorization.k8s.io
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: "{{ .Release.Name }}-prepare-cm-preinstall-hook"
namespace: "{{ $.Release.Namespace }}"
spec:
podSelector:
matchLabels:
batch.kubernetes.io/job-name: "{{ .Release.Name }}-prepare-cm-preinstall-hook"
policyTypes:
- Egress
egress:
- {}
---
apiVersion: batch/v1
kind: Job
metadata:
Expand Down
14 changes: 14 additions & 0 deletions policies/connectivity/wc-ip/WorkloadClusterIpJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@ roleRef:
name: "[[ .Release.Name ]]-read-write-configmap"
apiGroup: rbac.authorization.k8s.io
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: "[[ .Release.Name ]]-prepare-cm-preinstall-hook"
namespace: "[[ $.Release.Namespace ]]"
spec:
podSelector:
matchLabels:
batch.kubernetes.io/job-name: "[[ .Release.Name ]]-prepare-cm-preinstall-hook"
policyTypes:
- Egress
egress:
- {}
---
apiVersion: batch/v1
kind: Job
metadata:
Expand Down

0 comments on commit eb5ab7f

Please sign in to comment.