Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

liveness - Make separate liveness/readiness probes possible. #278

Merged

Conversation

toffer
Copy link
Contributor

@toffer toffer commented Nov 12, 2020

Q A
Bug fix? []
New feature? [x]
API breaks? []
Deprecations? []
Related tickets fixes #277
License Apache 2.0

What's in this PR?

This PR adds back the ability to use different scripts for the liveness and readiness probes, but it preserves the default behavior (introduced in #234) where the same script is used for both.

The readiness-probe.sh script will continue to be used for both the liveness and readiness probes, since liveness-probe.sh is a symlink to readiness-probe.sh.

However, by using separate filenames for each of the probes, it is now possible to override this behavior, and define separate scripts for each type of probe.

Checklist

  • Implementation tested
  • Append changelog

By default, the same script will continue to be used for both probes,
since liveness-probe.sh is a symlink to readiness-probe.sh.

However, by using separate filenames for each of the probes, it is now
possible to override this behavior, and define separate scripts for
each type of probe.
@toffer
Copy link
Contributor Author

toffer commented Nov 12, 2020

For the dgoss test to pass, this will require building a new bootstrap docker image (version 0.1.7).

@cscetbon
Copy link
Contributor

cscetbon commented Nov 16, 2020

I wanted to simplify it but I think it makes sense if you want to overwrite it. I’ll generate the bootstrap image and kick off the tests again

@cscetbon cscetbon merged commit 4c0e2cc into Orange-OpenSource:master Nov 17, 2020
@cscetbon cscetbon mentioned this pull request Nov 18, 2020
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.

Make separate liveness/readiness probes possible
2 participants