Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeReplacementHandler ¶
type NodeReplacementHandler struct {
// contains filtered or unexported fields
}
NodeReplacementHandler handles the business logic within the NodeReplacement controller.
func NewNodeReplacementHandler ¶
func NewNodeReplacementHandler(c client.Client, opts *Options) *NodeReplacementHandler
NewNodeReplacementHandler creates a new NodeReplacementHandler
func (*NodeReplacementHandler) Handle ¶
func (h *NodeReplacementHandler) Handle(instance *navarchosv1alpha1.NodeReplacement) (*status.Result, error)
Handle performs the business logic of a NodeReplacement and returns information in a Result. The use of fallthrough is to ensure that one instance of a NodeReplacement can be handled in full without interruption
type Options ¶
type Options struct { // EvictionGracePeriod determines how long the controller should attempt to // evict a pod before marking it a failed eviction EvictionGracePeriod *time.Duration // DrainTimeout determines how long the controller should attempt to drain a // node before timing out. Zero means infinite DrainTimeout *time.Duration // IgnoreAllDaemonSets instructs the controller to ignore all DaemonSet // managed pods. Defaults true IgnoreAllDaemonSets *bool // DeleteLocalData instructs the controller to delete local data belonging // to pods (emptyDir). Defaults true DeleteLocalData *bool // ForcePodDeletion instructs the controller to continue even if there are // pods not managed by a ReplicationController, ReplicaSet, Job, DaemonSet // or StatefulSet. Defaults false ForcePodDeletion *bool // Config is used to construct a kubernetes client Config *rest.Config // contains filtered or unexported fields }
Options are used to configure the NodeReplacementHandler
Click to show internal directories.
Click to hide internal directories.