kompose/script/test/fixtures/v2/output-os.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

248 lines
4.7 KiB
YAML

---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: foo
name: foo
spec:
ports:
- name: "6379"
port: 6379
targetPort: 6379
- name: 6379-udp
port: 6379
protocol: UDP
targetPort: 6379
- name: "3000"
port: 3000
targetPort: 3000
- name: "3001"
port: 3001
targetPort: 3001
- name: "3002"
port: 3002
targetPort: 3002
- name: "3003"
port: 3003
targetPort: 3003
- name: "3004"
port: 3004
targetPort: 3004
- name: "3005"
port: 3005
targetPort: 3005
- name: "8000"
port: 8000
targetPort: 8000
- name: "9090"
port: 9090
targetPort: 8080
- name: "9091"
port: 9091
targetPort: 8081
- name: "49100"
port: 49100
targetPort: 22
- name: "8001"
port: 8001
targetPort: 8001
- name: "5000"
port: 5000
targetPort: 5000
- name: "5001"
port: 5001
targetPort: 5001
- name: "5002"
port: 5002
targetPort: 5002
- name: "5003"
port: 5003
targetPort: 5003
- name: "5004"
port: 5004
targetPort: 5004
- name: "5005"
port: 5005
targetPort: 5005
- name: "5006"
port: 5006
targetPort: 5006
- name: "5007"
port: 5007
targetPort: 5007
- name: "5008"
port: 5008
targetPort: 5008
- name: "5009"
port: 5009
targetPort: 5009
- name: "5010"
port: 5010
targetPort: 5010
selector:
io.kompose.service: foo
---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: redis-tcp
name: redis-tcp
spec:
ports:
- name: "6379"
port: 6379
targetPort: 6379
selector:
io.kompose.service: redis
type: LoadBalancer
---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: redis-udp
name: redis-udp
spec:
ports:
- name: "1234"
port: 1234
protocol: UDP
targetPort: 1235
selector:
io.kompose.service: redis
type: LoadBalancer
---
apiVersion: v1
kind: Pod
metadata:
labels:
io.kompose.service: foo
name: foo
spec:
containers:
- env:
- name: GITHUB
value: surajssd
image: foobar
name: foo
ports:
- containerPort: 6379
protocol: TCP
- containerPort: 6379
protocol: UDP
- containerPort: 3000
protocol: TCP
- containerPort: 3001
protocol: TCP
- containerPort: 3002
protocol: TCP
- containerPort: 3003
protocol: TCP
- containerPort: 3004
protocol: TCP
- containerPort: 3005
protocol: TCP
- containerPort: 8000
protocol: TCP
- containerPort: 8080
protocol: TCP
- containerPort: 8081
protocol: TCP
- containerPort: 22
protocol: TCP
- containerPort: 8001
protocol: TCP
- containerPort: 5000
protocol: TCP
- containerPort: 5001
protocol: TCP
- containerPort: 5002
protocol: TCP
- containerPort: 5003
protocol: TCP
- containerPort: 5004
protocol: TCP
- containerPort: 5005
protocol: TCP
- containerPort: 5006
protocol: TCP
- containerPort: 5007
protocol: TCP
- containerPort: 5008
protocol: TCP
- containerPort: 5009
protocol: TCP
- containerPort: 5010
protocol: TCP
resources:
limits:
memory: "10e3"
restartPolicy: Never
securityContext:
supplementalGroups:
- 1234
---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
io.kompose.service: redis
name: redis
spec:
replicas: 1
selector:
io.kompose.service: redis
template:
metadata:
labels:
io.kompose.service: redis
spec:
containers:
- image: ' '
name: redis
ports:
- containerPort: 6379
protocol: TCP
- containerPort: 1235
protocol: UDP
resources:
limits:
memory: "10485760e3"
restartPolicy: Always
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- redis
from:
kind: ImageStreamTag
name: redis:3.0
type: ImageChange
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
io.kompose.service: redis
name: redis
spec:
lookupPolicy:
local: false
tags:
- from:
kind: DockerImage
name: redis:3.0
name: "3.0"
referencePolicy:
type: ""