Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Conversation

@lorenzo-ange
Copy link
Contributor

Hello,
with this fix, if compilation steps fails, the compile initContainer exits with the error code to inform kubernetes that something went wrong.

Thank you,
Lorenzo

@lorenzo-ange lorenzo-ange changed the title Exit with error code in compile initContainer .NET runtime - Exit with error code in compile initContainer Sep 8, 2020
@@ -1,5 +1,14 @@
#!/bin/bash

Copy link
Contributor

@allantargino allantargino Sep 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lorenzo-ange, what if you use the following set attributes:

  • set -e to exit on the first error.
  • set -x to show each command before executing it.

This would avoiding multiple calls to the exit_on_error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants