applydriver

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const MasterRoleLabel = "node-role.kubernetes.io/master"

Variables

This section is empty.

Functions

func DeleteNodes

func DeleteNodes(client *k8s.Client, nodeIPs []net.IP) error

func GetCurrentCluster

func GetCurrentCluster(client *k8s.Client) (*v2.Cluster, error)

func VersionCompatible

func VersionCompatible(version, constraint string) bool

Types

type Applier

type Applier struct {
	ClusterDesired      *v2.Cluster
	ClusterCurrent      *v2.Cluster
	ClusterFile         clusterfile.Interface
	ImageManager        image.Service
	ClusterImageMounter clusterimage.Interface
	Client              *k8s.Client
	ImageStore          store.ImageStore
	CurrentClusterInfo  *version.Info
}

Applier cloud builder using cloud provider to build a ClusterImage

func (*Applier) Apply

func (c *Applier) Apply() (err error)

Apply different actions between ClusterDesired and ClusterCurrent.

func (*Applier) Delete

func (c *Applier) Delete() (err error)

func (*Applier) Upgrade

func (c *Applier) Upgrade(upgradeImgName string) error

type Interface

type Interface interface {
	Apply() error
	Delete() error
	Upgrade(imageName string) error
}

Jump to

Keyboard shortcuts

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