preinstall

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CheckResults is used to save save check results.
	CheckResults = make(map[string]interface{})
	// BaseSoftwares defines the software to be checked.
	BaseSoftwares = []string{"sudo", "curl", "openssl", "ebtables", "socat", "ipset", "conntrack", "docker", "showmount", "rbd", "glusterfs"}
)

Functions

func FilesDownloadHTTP

func FilesDownloadHTTP(mgr *manager.Manager, filepath, version, arch string) error

FilesDownloadHTTP defines the kubernetes' binaries that need to be downloaded in advance and downloads them.

func GetImage

func GetImage(mgr *manager.Manager, name string) images.Image

GetImage defines the list of all images and gets image object by name.

func PrecheckConfirm

func PrecheckConfirm(mgr *manager.Manager)

PrecheckConfirm is used to show check results and interact with user.

func PrecheckNodes

func PrecheckNodes(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error

PrecheckNodes is used to check nodes before installation.

func Prepare

func Prepare(mgr *manager.Manager) error

Prepare is used to create work directory and download kubernetes' binaries in advance.

func PullImages

func PullImages(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error

PullImages defines the list of images that need to be downloaded in advance and downloads them.

func SHA256Check

func SHA256Check(binary files.KubeBinary) error

SHA256Check is used to hash checks on downloaded binary. (sha256)

Types

type PrecheckResults

type PrecheckResults struct {
	Name      string `table:"name"`
	Sudo      string `table:"sudo"`
	Curl      string `table:"curl"`
	Openssl   string `table:"openssl"`
	Ebtables  string `table:"ebtables"`
	Socat     string `table:"socat"`
	Ipset     string `table:"ipset"`
	Conntrack string `table:"conntrack"`
	Docker    string `table:"docker"`
	Nfs       string `table:"nfs client"`
	Ceph      string `table:"ceph client"`
	Glusterfs string `table:"glusterfs client"`
	Time      string `table:"time"`
}

PrecheckResults defines the items to be checked.

Jump to

Keyboard shortcuts

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