Force sync external secret
k8s_force_sync_external_secretForce an ExternalSecret to re-read its store and verify a newer refresh with Ready=True; delete the target Secret when needed to make the controller recreate it if annotation-only sync stalls.
Instructions
Force an ExternalSecret to re-read its store now, and prove it did.
Sets the force-sync annotation to a new value, then waits until the
controller reports a newer refreshTime with Ready=True. When the
refresh does not happen in time, or recreate_target is true, the
target Secret is deleted so the controller must recreate it from the
store (the step that works when an annotation alone is ignored, e.g. a
controller queue stuck behind failing objects). Reports the target
Secret's data digest before and after; values are never returned.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "k8s_force_sync_external_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| namespace | No | ||
| recreate_target | No | ||
| timeout_seconds | No |