feat: disable network policies generation by default (#1629)
* feat: disable network policies default generation Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com> * docs: add the generate-network-policies flag to user guide Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com> * test: add unit tests of the network policies generation Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com> --------- Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
This commit is contained in:
+1
-26
@@ -2,9 +2,6 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: ./kompose convert --stdout
|
||||
kompose.version: 1.28.0 (4d1ce961)
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: web
|
||||
@@ -23,9 +20,6 @@ status:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: ./kompose convert --stdout
|
||||
kompose.version: 1.28.0 (4d1ce961)
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: web
|
||||
@@ -38,12 +32,9 @@ spec:
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: ./kompose convert --stdout
|
||||
kompose.version: 1.28.0 (4d1ce961)
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/kompose-default: "true"
|
||||
io.kompose.network/compose-file-support-default: "true"
|
||||
io.kompose.service: web
|
||||
spec:
|
||||
containers:
|
||||
@@ -57,19 +48,3 @@ spec:
|
||||
restartPolicy: Always
|
||||
status: {}
|
||||
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: kompose-default
|
||||
spec:
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
io.kompose.network/kompose-default: "true"
|
||||
podSelector:
|
||||
matchLabels:
|
||||
io.kompose.network/kompose-default: "true"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user