Files
kube-forge/pkg/kubespray/cluster.go

25 lines
490 B
Go

package kubespray
import (
"kube-forge/pkg/config"
"kube-forge/pkg/secrets_storage"
)
func InstallCluster(tags string) {
runPlaybook("kubespray/project/cluster.yml", tags)
config := config.GetConfig()
if config.Modules.SecretsStorage.Enabled {
secrets_storage.InitVault()
secrets_storage.UnsealVault()
}
}
func UpgradeCluster(tags string) {
runPlaybook("kubespray/project/upgrade_cluster.yml", tags)
}
func ScaleCluster() {
runPlaybook("kubespray/project/scale.yml", "")
}