Find why a request was refused¶
A request that is refused or stops says why in its conditions. Background: design 6 and the life of a request.
Steps¶
With the kubectl plugin, kubectl shadewright explain <name> -n shadewright-system does steps 1 to 3 in one read-only command: the phase, the condition timeline, the condition that stopped the request and a link to its section of troubleshooting. Without it:
-
Print the phase and every condition with its reason and message:
-
Read the phase, and check every condition:
PolicyAllowed,PullRequestOpened,Approved,PlanFreshandQueued:Denied: policy or settings do not allow the plan. The reason is onPolicyAllowed=False.NeedsIntervention: the executor cannot decide or continue alone. The reason is onPolicyAllowed,PullRequestOpenedorApproved.Superseded: the plan went stale; the reason is onPlanFresh=False.Pendingwith a conditionQueued: a limit holds it back.Pendingwith no condition at all: it is being retried, usually a Git or signer problem. Read the executor log.
- Look the reason up in troubleshooting. It lists every reason with its cause and the fix. The reasons of a policy refusal are grouped under policy decision.
-
If the reason is not enough, read the executor log:
-
A refused request is final. Fix the cause and apply a new request with a new name, because the spec is immutable.
Not yet run
The commands are the ones printed in troubleshooting and were not run again against a live cluster for this guide.