Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contrib/vagrant: only ssh to k8s1 if vagrant up suceeded #10049

Merged
merged 1 commit into from Feb 18, 2020
Merged

contrib/vagrant: only ssh to k8s1 if vagrant up suceeded #10049

merged 1 commit into from Feb 18, 2020

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Feb 4, 2020

In case vagrant up returned with non-zero status (e.g. due to being
canceled or the initial box download failing), the script would still
attempt to vagrant ssh to k8s1 and print a message in case $K8S is
non-zero. Fix this by only executing vagrant ssh k8s1 if vagrant up
was successful. Also fix indentation.

Signed-off-by: Tobias Klauser tklauser@distanz.ch


This change is Reviewable

@tklauser tklauser requested a review from a team as a code owner February 4, 2020 16:17
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 Feb 4, 2020
@maintainer-s-little-helper
Copy link

Release note label not set, please set the appropriate release note.

@aanm aanm added release-note/misc This PR makes changes that have no direct user impact. and removed dont-merge/needs-release-note labels Feb 4, 2020
@coveralls
Copy link

coveralls commented Feb 4, 2020

Coverage Status

Coverage decreased (-0.02%) to 44.686% when pulling dfe6dd8 on tklauser:vagrant-start-k8s-nofail into 6c33df9 on cilium:master.

contrib/vagrant/start.sh Outdated Show resolved Hide resolved
In case `vagrant up` returned with non-zero status (e.g. due to being
canceled or the initial box download failing), the script would still
attempt to `vagrant ssh` to k8s1 and print a message in case $K8S is
non-zero. Fix this by only executing `vagrant ssh k8s1` if `vagrant up`
was successful. Also fix indentation.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@rolinh
Copy link
Member

rolinh commented Feb 4, 2020

test-me-please

@aanm aanm added the dont-merge/wait-until-release Freeze window for current release is blocking non-bugfix PRs label Feb 4, 2020
@aanm aanm added this to the 1.8 milestone Feb 18, 2020
@aanm aanm removed the dont-merge/wait-until-release Freeze window for current release is blocking non-bugfix PRs label Feb 18, 2020
@aanm aanm merged commit d615dcd into cilium:master Feb 18, 2020
1.8.0 automation moved this from In progress to Merged Feb 18, 2020
@tklauser tklauser deleted the vagrant-start-k8s-nofail branch February 20, 2020 16:29
pchaigno added a commit that referenced this pull request Feb 21, 2020
Pull request #10049 changed the way K8S is checked in the start.sh
script to try and enable the "K8S=0" syntax to disable the Kubernetes
build.  This change results in the following warning when K8S is unset:

  ./contrib/vagrant/start.sh: line 607: [: : integer expression expected

This commit reverts that specific change.  K8S should be 1 or unset to
enable or disable the Kubernetes build respectively.

Signed-off-by: Paul Chaignon <paul@cilium.io>
aanm pushed a commit that referenced this pull request Feb 21, 2020
Pull request #10049 changed the way K8S is checked in the start.sh
script to try and enable the "K8S=0" syntax to disable the Kubernetes
build.  This change results in the following warning when K8S is unset:

  ./contrib/vagrant/start.sh: line 607: [: : integer expression expected

This commit reverts that specific change.  K8S should be 1 or unset to
enable or disable the Kubernetes build respectively.

Signed-off-by: Paul Chaignon <paul@cilium.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

5 participants