nodedrain

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package nodedrain implements the controller for ensuring that drain detection deployments exist. The design and purpose for drain detection is found at: https://github.com/rook/rook/blob/master/design/ceph-managed-disruptionbudgets.md

Index

Constants

View Source
const (

	// CanaryAppName is applied to nodedrain canary components (pods, deployments) with the key app
	CanaryAppName = "rook-ceph-drain-canary"
	NodeNameLabel = "node_name"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, context *controllerconfig.Context) error

Add adds a new Controller based on nodedrain.ReconcileNode and registers the relevant watches and handlers

Types

type ReconcileNode

type ReconcileNode struct {
	// contains filtered or unexported fields
}

ReconcileNode reconciles ReplicaSets

func (*ReconcileNode) Reconcile

func (r *ReconcileNode) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reconciles a node and ensures that it has a drain-detection deployment attached to it. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL