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

Decision: Upgrade Controller Custom Health Checks #391

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
= Upgrade Controller Custom Health Checks

== Problem

Currently, our OpenShift upgrade controller doesn't support custom health checks.
Only checking the ClusterVersion CRD is supported, which is not sufficient for all use cases.

The current health check implementation can only fail jobs, but not skip them.
We might want to skip jobs in some cases, for example, if there are maintenance blocking PDBs in place.

=== Goals

* We have a method of implementing custom health checks for the upgrade controller
* We can skip jobs based on the health check results
* We can differentiate between failing and skipping health checks

=== Non-Goals

* TODO

== Proposals

=== 1a. Extend `UpgradeJobHooks`; track pod exit codes for skipping upgrades

=== 1b. Extend `UpgradeJobHooks`; upgrade controller exposes API for skipping upgrades

=== 1c. Extend `UpgradeJobHooks`, upgrade controller adds CRD for skipping upgrades

=== 1d. Extend `UpgradeJobHooks`, upgrade controller adds subresource for skipping upgrades

=== 2. Implement a new health check mechanism in the `UpgradeJob` CRD

=== 3. Implement a new health check mechanism analogous to the `UpgradeJobHook` CRD

== Decision

TODO

== Rationale

TODO

== References

* TODO
1 change: 1 addition & 0 deletions docs/modules/ROOT/partials/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,4 @@
** xref:oc4:ROOT:explanations/decisions/cloudscale-cilium-egressip.adoc[]
** xref:oc4:ROOT:explanations/decisions/gitlab-access-tokens.adoc[]
** xref:oc4:ROOT:explanations/decisions/prometheusrule-controller.adoc[]
** xref:oc4:ROOT:explanations/decisions/upgrade-controller-custom-healthchecks.adoc[]
Loading