add auto init/unseal for vault
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user