Resources / RemediationAttempt

RemediationAttempt

One attempt of a Remediation on one target, kept as a bounded ring per policy (spec 0047 section 6).

Overview

APIplatform.etorm.com/v1alpha1
Resourceremediationattempts (cluster-scoped inside its cluster)
Short namesrattempt
Available inthe platform and project clusters
Statuswritten 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

FieldTypeRequiredDefaultAllowedDescription
remediationRefobjectyesThe policy.
remediationRef.namestringyesName of the Remediation.
targetobjectyesThe object the action was for.
target.kindstringyesKind of the target.
target.namestringyesName of the target.
target.clusterstring"root"Cluster of the target.
actionstringyesThe action type.
sequenceintegerThe attempt's number for this policy and target (1, 2, 3 ...).
startedAtintegerUnix time the attempt started.
modestringplan or apply, as it was.

Status

FieldTypeRequiredDefaultAllowedDescription
outcomestring (one of)Planned, Succeeded, FailedWhat came of it.
reasonstringWhy it failed, or what was planned.
finishedAtintegerUnix time it finished.

Columns in listings

ColumnFrom
Policy.spec.remediationRef.name
Target.spec.target.name
Outcome.status.outcome

All resources