Adjust k8s
This commit is contained in:
@@ -12,21 +12,14 @@ Kind commands: oc-k8s <action> kind
|
||||
help - Show this help message
|
||||
|
||||
Usage:
|
||||
oc-k8s install kind [arch] [version]
|
||||
arch - Arch of OS (required)
|
||||
oc-k8s install kind -a [arch] -v [version]
|
||||
arch - Arch of OS (required)
|
||||
kind_version - version of kind (required)
|
||||
oc-k8s help values `)
|
||||
}
|
||||
|
||||
func Install_Kind(args ...string) error {
|
||||
arch := "linux-amd64"
|
||||
version := "v0.30.0"
|
||||
if len(args) > 0 {
|
||||
arch = args[0]
|
||||
}
|
||||
if len(args) > 1 {
|
||||
version = args[1]
|
||||
}
|
||||
func Install_Kind(arch string, version string) error {
|
||||
utils.Exec("curl -Lo kind-linux-amd64 https://kind.sigs.k8s.io/dl/" + version + "/kind-" + arch)
|
||||
//utils.Exec("sudo rm -f kind-" + arch)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user