Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterImagePlatform ¶
Deprecated
func IsInContainer ¶
func IsInContainer() bool
Types ¶
type ClusterRuntime ¶
type ClusterRuntime string
type Installer ¶ added in v0.9.0
type Installer interface { // Install exec init phase for cluster. TODO: make the annotation more comprehensive Install() error GetCurrentRuntimeDriver() (Driver, error) // Reset exec reset phase for cluster.TODO: make the annotation more comprehensive Reset() error // ScaleUp exec joining phase for cluster, add master role for these nodes. net.IP is the master node IP array. ScaleUp(newMasters, newWorkers []net.IP) error // ScaleDown exec deleting phase for deleting cluster master role nodes. net.IP is the master node IP array. ScaleDown(mastersToDelete, workersToDelete []net.IP) error // Upgrade exec upgrading phase for cluster.TODO: make the annotation more comprehensive Upgrade() error }
type Metadata ¶
type Metadata struct { Version string `json:"version"` Arch string `json:"arch"` Variant string `json:"variant"` // KubeVersion is a SemVer constraint specifying the version of Kubernetes required. KubeVersion string `json:"kubeVersion"` NydusFlag bool `json:"NydusFlag"` // ClusterRuntime is a flag to distinguish the runtime for k0s、k8s、k3s ClusterRuntime ClusterRuntime `json:"ClusterRuntime"` }
Deprecated
Click to show internal directories.
Click to hide internal directories.