kompose/script/test/fixtures/compose-file-env-variable/output-k8s.yaml
Charlie Drage 55b077ab04
cleanup: removes uneeded annotation when not using network policy (#1884)
#### What type of PR is this?

<!--
Add one of the following kinds:
/kind bug
/kind documentation
/kind feature
-->

/kind cleanup

#### What this PR does / why we need it:

Removes the network policy annotation which is not needed (we are not
generating network policy)

#### Which issue(s) this PR fixes:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes https://github.com/kubernetes/kompose/issues/1759

#### Special notes for your reviewer:
2024-06-02 20:46:57 +02:00

81 lines
1.3 KiB
YAML

---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: alpine
name: alpine
spec:
ports:
- name: "80"
port: 80
targetPort: 80
selector:
io.kompose.service: alpine
---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: debian
name: debian
spec:
ports:
- name: "80"
port: 80
targetPort: 80
selector:
io.kompose.service: debian
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: alpine
name: alpine
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: alpine
template:
metadata:
labels:
io.kompose.service: alpine
spec:
containers:
- image: alpine
name: alpine
ports:
- containerPort: 80
protocol: TCP
restartPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: debian
name: debian
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: debian
template:
metadata:
labels:
io.kompose.service: debian
spec:
containers:
- image: debian
name: debian
ports:
- containerPort: 80
protocol: TCP
restartPolicy: Always