-
Notifications
You must be signed in to change notification settings - Fork 0
Guarded Operations
Guarded Operations changes one selected Kubernetes resource through a fixed, typed action. Open Resource details, select resource, then open Actions. Before any action, read target card: context, namespace, kind, and name.
Related: Resource Details · GitOps · Helm · RBAC

- Select context and namespaced resource. Guarded actions require non-empty context, namespace, and name.
- Use kubeconfig identity authorized for requested action. Preview uses Kubernetes dry-run, so it also needs authorization.
- Confirm exact target before changing it. Operations never apply to a selector or resource group.
| Action | Supported kinds | Kubernetes permission |
|---|---|---|
| Scale | Deployment, StatefulSet | patch |
| Rollout restart | Deployment, StatefulSet, DaemonSet | patch |
| Delete | Pod, ConfigMap | delete |
Other kinds show no guarded operation.
flowchart TD
A[Select exact resource] --> B[Preview action]
B --> C{Dry-run succeeds?}
C -- No --> D[Read error, fix access or target, preview again]
C -- Yes --> E[Review shown effect]
E --> F[Confirm shown effect]
F --> G[Execute matching action]
G --> H[Check refreshed resource state]
- Preview sends dry-run request and shows effect. No cluster change occurs when preview succeeds.
- App records fingerprint for preview: action, exact target, and desired replicas for scale.
-
Confirm
I understand the shown effect will change this exact resource. - Execute only works with confirmation and matching preview fingerprint. Changing replica count clears preview and confirmation. Changing action or target requires new preview.
- Successful execution clears preview and confirmation, then shows result. Resource detail watch refreshes details after matching resource-change event. Result confirms command response; inspect refreshed state before follow-up work.
Use only Deployment or StatefulSet.
- Open Actions for workload.
- Enter Desired replicas. Use zero or greater.
- Select Preview scale. Check context, namespace, kind, name, and replica count in shown effect.
- Select confirmation checkbox.
- Select Scale workload.
- Inspect refreshed workload state. To undo intentional scale change, set prior replica count, preview new value, confirm, and execute again.
Scale patches spec.replicas on selected resource.
Use only Deployment, StatefulSet, or DaemonSet.
- Open Actions for workload.
- Select Preview restart. Review exact target and shown effect.
- Select confirmation checkbox.
- Select Rollout restart.
- Inspect refreshed workload and rollout state before declaring restart complete.
Restart patches pod template annotation kubecove.io/restartedAt. It does not delete workload.
Use only Pod or ConfigMap.
- Open Actions for Pod or ConfigMap.
- Select Preview delete. Verify target card and preview both name same context, namespace, kind, and name.
- Select confirmation checkbox.
- Select destructive Delete resource.
- Verify resource state after refresh. Result reports delete request; it does not prove resource has disappeared.
Delete targets one resource only. Preview identifies requested target; it is not dependent-resource analysis.
- Preview fails: no action is executed. Read displayed Kubernetes error, correct context, namespace, target, or access, then preview again.
- Confirmation or fingerprint error: preview exact current action again, then confirm it.
- Forbidden or unauthorized: request least-privilege RBAC for matrix verb in target namespace. Do not retry until access is corrected.
- Invalid replica count: use zero or positive integer.
- Request error after submission: final cluster state may be unknown. Read resource state before retrying.
- Delete result: confirm absence before recreating resource or taking dependent action.
In Details, Ownership can show Argo, Helm, or GitOps ownership. If shown, use source repository or release workflow for desired-state changes. Guarded Operations changes live Kubernetes object only; it does not update GitOps source or Helm release values. Reconciliation can replace direct changes.
For managed resources, treat scale and restart as temporary operational changes unless owning workflow records intended change. Avoid deleting managed Pod or ConfigMap until source-of-truth and controller behavior are understood.