Documentation
¶
Index ¶
- Variables
- func FilesDownloadHTTP(mgr *manager.Manager, filepath, version, arch string) error
- func GetImage(mgr *manager.Manager, name string) images.Image
- func PrecheckConfirm(mgr *manager.Manager)
- func PrecheckNodes(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
- func Prepare(mgr *manager.Manager) error
- func PullImages(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
- func SHA256Check(binary files.KubeBinary, version string) error
- type PrecheckResults
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 ¶
FilesDownloadHTTP defines the kubernetes' binaries that need to be downloaded in advance and downloads them.
func PrecheckConfirm ¶
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 ¶
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, version string) 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.
Click to show internal directories.
Click to hide internal directories.