0:40

📚 / Concepts / Inhibitor / Schema

Custom Resource Definition

API GroupVersionKind
kubirds.comv1Inhibitor

Inhibitor

NameTypeDescription
specInhibitorSpecSpecification of the desired behavior
statusInhibitorStatusStatus filled by the operator

InhibitorSpec

NameTypeDescription
schedulestringDescribe when the unit must be inhibited. RRule in human readable format or standard format (see RRule Spec), ie: every 5 minutes
durationstringDescribe how long the unit must be inhibited, ie: 1 hour
startDatestringDescribe the beginning of the schedule, ISO formated date and time
unitSelectorMapKubernetes labels used to select units to inhibit
emptySelectorBehaviorEmptySelectorBehaviorDescribe the unit selection behavior when the selector is empty

EmptySelectorBehavior

One of:

  • MatchAll: will match all units
  • MatchNone: will match no units

If not set, this defaults to MatchAll.

InhibitorStatus

NameTypeDescription
phaseAdmissionPhaseCurrent status of the Inhibitor admission workflow
failureReasonsstring arrayErrors encountered during the Inhibitor admission workflow

AdmissionPhase

One of:

  • Accepted
  • Rejected