Skip to content

Commit

Permalink
Merge pull request #98 from ccamacho/master
Browse files Browse the repository at this point in the history
fix: remove quotes from eof
  • Loading branch information
ccamacho authored Nov 21, 2020
2 parents 8e1bc35 + 16a4126 commit 9be2bb2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,19 @@ git log -n 5 --pretty=oneline
# Here we might define some different
# variables depending on the scenario
if [[ "$DISTRO" == "okd" && "$DRIVER" == "libvirt" ]]; then
sudo tee scenario_variables.yml > /dev/null <<'EOF'
sudo tee scenario_variables.yml > /dev/null <<EOF
kubeinit_libvirt_test_variable1: example_var
EOF
else
sudo tee scenario_variables.yml > /dev/null <<'EOF'
sudo tee scenario_variables.yml > /dev/null <<EOF
kubeinit_libvirt_test_variable2: example_var2
EOF
fi

echo "The content of the scenario_variables.yml file is:"

cat scenario_variables.yml

# By default we deploy 3 master and 1 worker cluster
# the case of 3 master is already by default
# the case of 1 worker is already by default
Expand Down
4 changes: 3 additions & 1 deletion ci/run_submariner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ cd kubeinit
# git fetch ccamacho
# git cherry-pick 58f718a29d5611234304b1e144a69

sudo tee scenario_variables.yml > /dev/null <<'EOF'
sudo tee scenario_variables.yml > /dev/null <<EOF
kubeinit_submariner_test_pr_url: "https://github.com/submariner-io/submariner-operator/pull/$PULL_REQUEST"
EOF

echo "The content of the scenario_variables.yml file is:"

cat scenario_variables.yml

# By default we deploy 3 master and 1 worker cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
- name: "Join cluster to the broker"
shell: |
export PATH=$PATH:~/.local/bin
subctl join --kubeconfig ~/.kube/config ./broker-info.subm --servicecidr {{ kubeinit_inventory_cluster_service_cidr }} --no-label --disable-nat --enable-pod-debugging --cable-driver libreswan --clusterid {{ kubeinit_inventory_cluster_name }} --image-override=quay.io/submariner/submariner-operator:devel
subctl join --kubeconfig ~/.kube/config ./broker-info.subm --servicecidr {{ kubeinit_inventory_cluster_service_cidr }} --no-label --disable-nat --enable-pod-debugging --cable-driver libreswan --clusterid {{ kubeinit_inventory_cluster_name }} --image-override='submariner-operator=quay.io/submariner/submariner-operator:devel'
args:
executable: /bin/bash
register: join_cluster
Expand Down

0 comments on commit 9be2bb2

Please sign in to comment.