Documentation
¶
Index ¶
- Constants
- func GetFieldOwner(managerNamespace string) string
- func PtrTo[T any](v T) *T
- func Wrap(z *zap.Logger) hclog.Logger
- type DrainManager
- func (d *DrainManager) IsClusterNodesHealthy(ctx context.Context) (bool, error)
- func (d *DrainManager) IsDrainOk(ctx context.Context, nodeName string) (bool, error)
- func (d *DrainManager) IsHealthy(ctx context.Context) (bool, error)
- func (d *DrainManager) RunPostDrain(ctx context.Context, nodeName string) error
- func (d *DrainManager) RunPreDrain(ctx context.Context, nodeName string) error
- type Level
- type RebootManager
- func (r *RebootManager) Cleanup(ctx context.Context) error
- func (r *RebootManager) CleanupNode(ctx context.Context, nodeName string) error
- func (r *RebootManager) IsNodeRebooted(ctx context.Context, kubeNode *corev1.Node, oldBootId string) (bool, error)
- func (r *RebootManager) IsRebootRequired(ctx context.Context, nodeName string) (bool, error)
- func (r *RebootManager) RebootNode(ctx context.Context, nodeName string) error
Constants ¶
View Source
const ( LabelPrefix = "nodedrain.k8s.slyng.dk" LabelComponent = LabelPrefix + "/component" )
Variables ¶
This section is empty.
Functions ¶
func GetFieldOwner ¶
Types ¶
type DrainManager ¶
type DrainManager struct {
// contains filtered or unexported fields
}
func NewDrainManager ¶
func (*DrainManager) IsClusterNodesHealthy ¶
func (d *DrainManager) IsClusterNodesHealthy(ctx context.Context) (bool, error)
func (*DrainManager) IsHealthy ¶
func (d *DrainManager) IsHealthy(ctx context.Context) (bool, error)
func (*DrainManager) RunPostDrain ¶
func (d *DrainManager) RunPostDrain(ctx context.Context, nodeName string) error
func (*DrainManager) RunPreDrain ¶
func (d *DrainManager) RunPreDrain(ctx context.Context, nodeName string) error
type RebootManager ¶
type RebootManager struct {
// contains filtered or unexported fields
}
func NewRebootManager ¶
func (*RebootManager) CleanupNode ¶
func (r *RebootManager) CleanupNode(ctx context.Context, nodeName string) error
func (*RebootManager) IsNodeRebooted ¶
func (*RebootManager) IsRebootRequired ¶
func (*RebootManager) RebootNode ¶
func (r *RebootManager) RebootNode(ctx context.Context, nodeName string) error
Click to show internal directories.
Click to hide internal directories.