func (d *kubectlInstallerInCentOS) WaitForStart() (ok bool, err error) {
	ok = true
	return
}
WaitForStart waits for the service be started
package yum
import (
	_ "embed"
	"fmt"
	"github.com/linuxsuren/http-downloader/pkg/exec"
	"io/ioutil"
	"runtime"
)
var kubernetesRepo string
type kubectlInstallerInCentOS struct {
	count int
}
func (d *kubectlInstallerInCentOS) Available() (ok bool) {
	if runtime.GOOS == "linux" {
		_, err := exec.LookPath("yum")
		ok = err == nil
	}
	return
}
func (d *kubectlInstallerInCentOS) Install() (err error) {
	repo := "/etc/yum.repos.d/kubernetes.repo"
	if err = ioutil.WriteFile(repo, []byte(kubernetesRepo), 0644); err != nil {
		err = fmt.Errorf("failed to save %s, error: %v", repo, err)
		return
	}
	if err = exec.RunCommand("yum", "install", "-y", "kubectl"); err != nil {
		return
	}
	return
}
func (d *kubectlInstallerInCentOS) Uninstall() (err error) {
	err = exec.RunCommand("yum", "remove", "-y", "kubectl")
	return
}