1:16

📚 / Concepts / Reactor / Schema

Custom Resource Definition

API GroupVersionKind
kubirds.comv1Reactor

Reactor

NameTypeDescription
specReactorSpecSpecification of the desired behavior
statusReactorStatusStatus filled by the operator

ReactorSpec

NameTypeDescription
imageImageDescribe the Docker image to use for the reactor
serviceAccountNamestringName of the service account used to run the pod (defaults to default)
envEnvVar arrayList of environment variables to set in the container
envFromEnvFromSource arrayList of sources to populate environment variables in the container
volumesVolume arrayList of volumes to mount in the container
unitSelectorMapKubernetes labels used to select units to inhibit
emptySelectorBehaviorEmptySelectorBehaviorDescribe the unit selection behavior when the selector is empty
triggersTriggersDescribe when the reactor should run

Image

NameTypeDescription
namestringDocker image name (ie: alpine:latest)
pullPolicyImagePullPolicyWhen to pull the image
commandstringCommand to execute inside the container

ImagePullPolicy

One of:

  • Always
  • Never
  • IfNotPresent

Volume

Same as a Kubernetes Volume but with those extra properties:

NameTypeDescription
pathstringMount path in the container

EmptySelectorBehavior

One of:

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

If not set, this defaults to MatchAll.

Triggers

NameTypeDefaultDescription
successbooleantrueIf true, will be triggered for every successful unit
failurebooleantrueIf true, will be triggered for every failed unit
fixedbooleanfalseIf true, will be trigger on a successful unit, previously failed
regressionbooleanfalseIf true, will be trigger on a failed unit, previously successful

UnitStatus

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

AdmissionPhase

One of:

  • Accepted
  • Rejected