Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CurrentMachineConfigAnnotationKey is used to fetch current targetConfigVersionHash CurrentMachineConfigAnnotationKey = "machineconfiguration.openshift.io/currentConfig" // DesiredMachineConfigAnnotationKey is used to indicate the version a node should be updating to DesiredMachineConfigAnnotationKey = "machineconfiguration.openshift.io/desiredConfig" // MachineConfigDaemonStateAnnotationKey is used to fetch the state of the daemon on the machine. MachineConfigDaemonStateAnnotationKey = "machineconfiguration.openshift.io/state" // MachineConfigDaemonStateDegraded is set by daemon when an error not caused by a bad MachineConfig // is thrown during an upgrade. MachineConfigDaemonStateDegraded = "Degraded" // MachineConfigDaemonStateDone is set by daemon when the upgrade is done. MachineConfigDaemonStateDone = "Done" // MachineConfigDaemonMessageAnnotationKey is set by the daemon when it needs to report a human readable reason for its state. E.g. when state flips to degraded/unreconcilable. MachineConfigDaemonMessageAnnotationKey = "machineconfiguration.openshift.io/reason" // DesiredDrainerAnnotationKey is set by the MCD to indicate drain/uncordon requests DesiredDrainerAnnotationKey = "machineconfiguration.openshift.io/desiredDrain" // LastAppliedDrainerAnnotationKey is set by the controller to indicate the last request applied LastAppliedDrainerAnnotationKey = "machineconfiguration.openshift.io/lastAppliedDrain" // MachineConfigOperatorImage is the MCO image reference in the release payload MachineConfigOperatorImage = "machine-config-operator" TokenSecretPayloadKey = "payload" TokenSecretReleaseKey = "release" )
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(opts *operator.HostedClusterConfigOperatorConfig) error
Types ¶
type Reconciler ¶
type Reconciler struct { upsert.CreateOrUpdateProvider // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.