This commit is contained in:
erik 2022-08-18 17:38:35 +02:00
parent 949fe0c1af
commit 46b822d4cd

View file

@ -16,7 +16,7 @@ fun Prov.provisionK3s(cli: K3sCliCommand) = task {
val k3sConfig: K3sConfig = getK3sConfig(cli.configFileName) val k3sConfig: K3sConfig = getK3sConfig(cli.configFileName)
provisionK3sWorker(k3sConfig, grafanaConfigResolved, cli.applicationFileName) provisionK3sWorker(k3sConfig, grafanaConfigResolved, cli.applicationFileName)
} }
else if (cli.reprovision) { else if (cli.reprovision) { // TODO: Add logic that overrides config, when cmd option is set
deprovisionK3sInfra() deprovisionK3sInfra()
val k3sConfig: K3sConfig = getK3sConfig(cli.configFileName) val k3sConfig: K3sConfig = getK3sConfig(cli.configFileName)
provisionK3sWorker(k3sConfig, grafanaConfigResolved, cli.applicationFileName) provisionK3sWorker(k3sConfig, grafanaConfigResolved, cli.applicationFileName)