machinery

package
v0.0.0-...-a56079f Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package machinery provides upgrade related functions that are abstracted from machineconfig.

Index

Constants

View Source
const (
	// MasterLabel for master node
	MasterLabel = "node-role.kubernetes.io/master"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IsCordonedResult

type IsCordonedResult struct {
	IsCordoned bool
	AddedAt    *metav1.Time
}

IsCordonedResult is a type that holds cordoned information

type Machinery

type Machinery interface {
	IsUpgrading(c client.Client, nodeType string) (*UpgradingResult, error)
	IsNodeCordoned(node *corev1.Node) *IsCordonedResult
	IsNodeUpgrading(node *corev1.Node) bool
}

Machinery enables an implementation of a Machinery interface

func NewMachinery

func NewMachinery() Machinery

NewMachinery returns a machinery struct

type UpgradingResult

type UpgradingResult struct {
	IsUpgrading  bool
	UpdatedCount int32
	MachineCount int32
}

UpgradingResult provides a struct to illustrate the upgrading result

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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