first version
This commit is contained in:
16
pkg/kubespray/cluster.go
Normal file
16
pkg/kubespray/cluster.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package kubespray
|
||||
|
||||
func InstallCluster(tags string) {
|
||||
playbookConfig := getPlaybookParameters(tags)
|
||||
runPlaybook("kubespray/project/cluster.yml", playbookConfig)
|
||||
}
|
||||
|
||||
func UpgradeCluster(tags string) {
|
||||
playbookConfig := getPlaybookParameters(tags)
|
||||
runPlaybook("kubespray/project/upgrade_cluster.yml", playbookConfig)
|
||||
}
|
||||
|
||||
func ResetCluster() {
|
||||
playbookConfig := getPlaybookParameters("reset")
|
||||
runPlaybook("kubespray/project/reset.yml", playbookConfig)
|
||||
}
|
||||
Reference in New Issue
Block a user