kompose/script/test/fixtures/envvars-with-status/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

77 lines
1.4 KiB
YAML

---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: app
name: app
spec:
ports:
- name: "3000"
port: 3000
targetPort: 3000
selector:
io.kompose.service: app
---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
io.kompose.service: app
name: app
spec:
replicas: 1
selector:
io.kompose.service: app
template:
metadata:
labels:
io.kompose.service: app
spec:
containers:
- args:
- sh
- -c
- yarn install && yarn run dev
env:
- name: OTHER_ENV
value: example
- name: TOPICS
value: foo:1,status:2,bar:3
image: ' '
name: app
ports:
- containerPort: 3000
protocol: TCP
restartPolicy: Always
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- app
from:
kind: ImageStreamTag
name: app:18-alpine
type: ImageChange
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
io.kompose.service: app
name: app
spec:
lookupPolicy:
local: false
tags:
- from:
kind: DockerImage
name: node:18-alpine
name: 18-alpine
referencePolicy:
type: ""