applydriver

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 17 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 []string) 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
	ImageManager       image.Service
	FileSystem         filesystem.Interface
	Client             *k8s.Client
	ImageStore         store.ImageStore
	CurrentClusterInfo *version.Info
}

Applier cloud builder using cloud provider to build a cluster image

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)

type Interface

type Interface interface {
	Apply() error
	Delete() error
}

Jump to

Keyboard shortcuts

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