Skip to content

Commit

Permalink
fix configmap names in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsBroersen committed Oct 26, 2023
1 parent a007ac3 commit ae0d6c5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
11 changes: 11 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: go get && go build ./... && go test ./... && make
command: go run .


12 changes: 6 additions & 6 deletions script/test/fixtures/env/output-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ spec:
valueFrom:
configMapKeyRef:
key: BAR
name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env
- name: FOO
valueFrom:
configMapKeyRef:
key: FOO
name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env
image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
name: another-namenode
ports:
Expand All @@ -95,8 +95,8 @@ kind: ConfigMap
metadata:
creationTimestamp: null
labels:
io.kompose.service: another-namenode-home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
io.kompose.service: another-namenode-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env

---
apiVersion: apps/v1
Expand Down Expand Up @@ -125,14 +125,14 @@ spec:
valueFrom:
configMapKeyRef:
key: BAR
name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env
- name: CLUSTER_NAME
value: test
- name: FOO
valueFrom:
configMapKeyRef:
key: FOO
name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env
image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
name: namenode
ports:
Expand Down
12 changes: 6 additions & 6 deletions script/test/fixtures/env/output-os.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ kind: ConfigMap
metadata:
creationTimestamp: null
labels:
io.kompose.service: another-namenode-home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
io.kompose.service: another-namenode-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env

---
apiVersion: apps.openshift.io/v1
Expand Down Expand Up @@ -79,12 +79,12 @@ spec:
valueFrom:
configMapKeyRef:
key: BAR
name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env
- name: FOO
valueFrom:
configMapKeyRef:
key: FOO
name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env
image: ' '
name: another-namenode
ports:
Expand Down Expand Up @@ -166,14 +166,14 @@ spec:
valueFrom:
configMapKeyRef:
key: BAR
name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env
- name: CLUSTER_NAME
value: test
- name: FOO
valueFrom:
configMapKeyRef:
key: FOO
name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env
name: hadoop-hive-namenode-env
image: ' '
name: namenode
ports:
Expand Down

0 comments on commit ae0d6c5

Please sign in to comment.