kompose/script/test/fixtures/env-multiple/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

141 lines
2.7 KiB
YAML

---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
io.kompose.service: another-namenode
name: another-namenode
spec:
ports:
- name: "50070"
port: 50070
targetPort: 50070
- name: "8020"
port: 8020
targetPort: 8020
selector:
io.kompose.service: another-namenode
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
io.kompose.service: namenode
name: namenode
spec:
ports:
- name: "50070"
port: 50070
targetPort: 50070
- name: "8020"
port: 8020
targetPort: 8020
selector:
io.kompose.service: namenode
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
io.kompose.service: another-namenode
name: another-namenode
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: another-namenode
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
io.kompose.service: another-namenode
spec:
containers:
- env:
- name: BAR
valueFrom:
configMapKeyRef:
key: BAR
name: hadoop-hive-namenode-env
image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
name: another-namenode
ports:
- containerPort: 50070
protocol: TCP
- containerPort: 8020
protocol: TCP
resources: {}
restartPolicy: Always
---
apiVersion: v1
data:
FOO: BAR
kind: ConfigMap
metadata:
creationTimestamp: null
labels:
io.kompose.service: hadoop-hive-namenode-env
name: hadoop-hive-namenode-env
---
apiVersion: v1
data:
BAR: FOO
kind: ConfigMap
metadata:
creationTimestamp: null
labels:
io.kompose.service: another-namenode-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env1
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
io.kompose.service: namenode
name: namenode
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: namenode
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
io.kompose.service: namenode
spec:
containers:
- env:
- name: CLUSTER_NAME
value: test
- name: FOO
valueFrom:
configMapKeyRef:
key: FOO
name: hadoop-hive-namenode-env
image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
name: namenode
ports:
- containerPort: 50070
protocol: TCP
- containerPort: 8020
protocol: TCP
resources: {}
restartPolicy: Always