apply

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructClusterFromArg

func ConstructClusterFromArg(imageName string, runArgs *Args) (*v2.Cluster, error)

func Delete

func Delete(cluster *v2.Cluster, scaleArgs *Args) error

func Join

func Join(cluster *v2.Cluster, scaleArgs *Args) error

func NewApplier

func NewApplier(cluster *v2.Cluster) (applydriver.Interface, error)

NewApplier news an applier. In NewApplier, we guarantee that no raw data could be passed in. And all data has to be validated and processed in the pre-process layer.

func NewApplierFromArgs

func NewApplierFromArgs(imageName string, runArgs *Args) (applydriver.Interface, error)

func NewApplierFromFile

func NewApplierFromFile(path string) (applydriver.Interface, error)

func NewDefaultApplier

func NewDefaultApplier(cluster *v2.Cluster) (applydriver.Interface, error)

func NewScaleApplierFromArgs

func NewScaleApplierFromArgs(clusterfile string, scaleArgs *Args, flag string) (applydriver.Interface, error)

NewScaleApplierFromArgs will filter ip list from command parameters.

Types

type Args

type Args struct {
	ClusterName string

	// Masters and Nodes only support:
	// IP list format: ip1,ip2,ip3
	// IP range format: x.x.x.x-x.x.x.y
	Masters string
	Nodes   string

	User       string
	Password   string
	Port       uint16
	Pk         string
	PkPassword string
	PodCidr    string
	SvcCidr    string
	Provider   string
	CustomEnv  []string
	CMDArgs    []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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