Reject a proposal¶
Rejecting is closing the pull request without merging it. Nothing in the cluster has changed at that point, because Shadewright writes only to Git. Background: the life of a request.
Steps¶
- Close the pull request on your Git host, without merging. Add a comment saying why if your team wants one.
-
Within about a minute (the executor's
--pull-request-poll-interval) the request ends in phaseNeedsInterventionwith reasonChangeRequestClosed. It is final, and the executor never reopens a pull request. -
Know that a rejection counts against the circuit breaker: the request ends
NeedsIntervention, which counts as a failure. Three failures in 30 minutes hold back every new request (CircuitOpen, see troubleshooting). Deleting the rejected requests closes the breaker at once. - If the change is wanted after all (with another value, or after a fix), apply a new request with a new name. The spec of a request is immutable, so you cannot edit it.
Other ways to end it¶
| Way | Effect |
|---|---|
Set spec.cancel (kubectl -n shadewright-system patch remediationrequest <name> --type merge -p '{"spec":{"cancel":true}}') |
Before the merge only. The executor closes the open pull request and ends the request Cancelled with reason CancelRequested; the request stays as the record and its branch is left. Cancelled does not count against the circuit breaker, unlike a rejection. It cannot be undone (upgrade and uninstall) |
Delete the RemediationRequest |
The executor closes its open pull request first (finalizer remediation.shadewright.io/close-pull-request), and any other open pull request of its branch that carries the request's marker; one without the marker is left alone. This holds also for a stopped request that still holds the lock on its target. While writes are paused the deletion waits |
| Leave the pull request open | An unmerged pull request stays open and the request waits. A stopped request that holds the lock on its target keeps other requests for that target waiting until its pull request is known closed or merged (looked up every 10 minutes). A waiting request does not expire once the pull request exists; the 30 minute limit is only for opening it. A plan that goes stale is closed by Shadewright (Superseded) |
The branch shadewright/<request UID> is left in place after a close; delete it by hand if you like. A merged pull request is not undone by any of this: revert it in Git through your normal review.
Not yet run
The kubectl command is not yet run for this guide. The behaviour comes from the executor code and the emergency stop page (close by hand, deletion and the finalizer); ChangeRequestClosed is listed in troubleshooting.