kubectl escalate revoke
kubectl escalate revoke [flags]
Delete active kube-escalate bindings before their TTL elapses.
When a binding is manually revoked the operator emits a Normal/EscalationRevoked
Kubernetes Event (via the finalizer) and decrements the active escalations gauge.
Flags
| Flag | Default | Description |
|---|---|---|
--all | false | Revoke escalations for all users |
--kubeconfig string | $KUBECONFIG | Path to kubeconfig |
Examples
# Revoke your own escalations
kubectl escalate revoke
# Revoke all users' escalations (requires delete on clusterrolebindings)
kubectl escalate revoke --all
How revocation works
Revoking calls Delete on the binding. Because the operator adds the
kube-escalate.layer87.de/cleanup finalizer on first reconcile, the API
server sets DeletionTimestamp instead of immediately removing the object.
On the next reconcile the operator:
- Detects
DeletionTimestampis set and TTL has not elapsed. - Emits
Normal/EscalationRevokedevent. - Calls
Metrics.RecordRevocation— decrementsactive_escalations, incrementsrevoked_total. - Removes the finalizer; the API server garbage-collects the object.