Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClustersCommand ¶
CreateClustersCommand returns a new cobra.Command under create command for armada
func GetCniFromFlags ¶
func GetCniFromFlags(flags *CreateClusterFlagpole) string
GetCniFromFlags returns the cni name from flags
func GetTargetClusters ¶ added in v0.1.3
func GetTargetClusters(provider *kind.Provider, flags *CreateClusterFlagpole) ([]*cluster.Config, error)
GetTargetClusters returns a list of clusters to create
Types ¶
type CreateClusterFlagpole ¶
type CreateClusterFlagpole struct {
// ImageName is the node image used for cluster creation
ImageName string
// Wait is a time duration to wait until cluster is ready
Wait time.Duration
// Retain if you keep clusters running even if error occurs
Retain bool
// Weave if to install weave cni
Weave bool
// Flannel if to install flannel cni
Flannel bool
// Calico if to install calico cni
Calico bool
// Kindnet if to install kindnet default cni
Kindnet bool
// DeployTiller if to install tiller
Tiller bool
// Overlap if to create clusters with overlapping cidrs
Overlap bool
// Debug sets log level to debug
Debug bool
// NumClusters is the number of clusters to create
NumClusters int
}
CreateClusterFlagpole is a list of cli flags for create clusters command
Click to show internal directories.
Click to hide internal directories.