Documentation ¶
Index ¶
- func ApplyProfiles(params reconcileParameters, data *state.Data) error
- func EnsureLabelMap(params reconcileParameters, data *state.Data) error
- func HandleNode(params reconcileParameters, data *state.Data) error
- func MaintainProfileStates(params reconcileParameters, data *state.Data) error
- func UpdateMaintenanceStateLabel(params reconcileParameters, data *state.Data) error
- type Config
- type ConfigDescriptor
- type NodeHandler
- type NodeReconciler
- type ProfileDescriptor
- type StateDescriptor
- type TransitionDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyProfiles ¶ added in v0.17.0
ensure a profile is assigned and profile states have been maintained beforehand.
func EnsureLabelMap ¶ added in v0.17.0
func HandleNode ¶ added in v0.17.0
func MaintainProfileStates ¶ added in v0.17.0
ensure a profile is assigned beforehand.
func UpdateMaintenanceStateLabel ¶ added in v0.17.0
Types ¶
type Config ¶
type Config struct { // RequeueInterval defines a duration after the a node is reconceiled again by the controller RequeueInterval time.Duration // Profiles contains all known profiles Profiles map[string]state.Profile // Contains reference to all plugins and their instances Registry plugin.Registry }
Config represents the controllers global configuration.
type ConfigDescriptor ¶
type ConfigDescriptor struct { Intervals struct { Requeue time.Duration `config:"requeue" validate:"required"` } `config:"intervals" validate:"required"` Instances plugin.InstancesDescriptor Profiles []ProfileDescriptor }
ConfigDescriptor describes the configuration structure to be parsed.
type NodeHandler ¶ added in v0.17.0
type NodeReconciler ¶
type NodeReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder NodeInfoCache cache.NodeInfoCache }
NodeReconciler reconciles a Node object.
func (*NodeReconciler) SetupWithManager ¶
func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager attaches the controller to the given manager.
type ProfileDescriptor ¶
type ProfileDescriptor struct { Name string `config:"name" validate:"required"` Operational StateDescriptor MaintenanceRequired StateDescriptor `config:"maintenance-required"` InMaintenance StateDescriptor `config:"in-maintenance"` }
type StateDescriptor ¶
type StateDescriptor struct { Notify string Transitions []TransitionDescriptor }
type TransitionDescriptor ¶
Click to show internal directories.
Click to hide internal directories.