Resources / RemediationAttempt
RemediationAttempt
One attempt of a Remediation on one target, kept as a bounded ring per policy (spec 0047 section 6).
Overview
| API | platform.etorm.com/v1alpha1 |
| Resource | remediationattempts (cluster-scoped inside its cluster) |
| Short names | rattempt |
| Available in | the platform and project clusters |
| Status | written by a controller through /status |
Minimal example
apiVersion: platform.etorm.com/v1alpha1
kind: RemediationAttempt
metadata:
name: example
spec:
remediationRef:
name: "<name>"
target:
kind: "<kind>"
name: "<name>"
action: "<action>"
Spec
| Field | Type | Required | Default | Allowed | Description |
remediationRef | object | yes | | | The policy. |
remediationRef.name | string | yes | | | Name of the Remediation. |
target | object | yes | | | The object the action was for. |
target.kind | string | yes | | | Kind of the target. |
target.name | string | yes | | | Name of the target. |
target.cluster | string | | "root" | | Cluster of the target. |
action | string | yes | | | The action type. |
sequence | integer | | | | The attempt's number for this policy and target (1, 2, 3 ...). |
startedAt | integer | | | | Unix time the attempt started. |
mode | string | | | | plan or apply, as it was. |
Status
| Field | Type | Required | Default | Allowed | Description |
outcome | string (one of) | | | Planned, Succeeded, Failed | What came of it. |
reason | string | | | | Why it failed, or what was planned. |
finishedAt | integer | | | | Unix time it finished. |
Columns in listings
| Column | From |
|---|
| Policy | .spec.remediationRef.name |
| Target | .spec.target.name |
| Outcome | .status.outcome |
All resources