Adjust k8s

This commit is contained in:
mr
2026-01-20 16:21:04 +01:00
parent f52bdf8ecc
commit 4ff6e706ca
18 changed files with 272 additions and 1799 deletions

View File

@@ -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
}