mirror of
https://github.com/kairos-io/provider-kairos.git
synced 2025-09-16 15:19:46 +00:00
🌱 Do setup API only if a kairos block is defined
Signed-off-by: Ettore Di Giacinto <mudler@mocaccino.org>
This commit is contained in:
@@ -105,7 +105,7 @@ func Bootstrap(e *pluggable.Event) pluggable.EventResponse {
|
||||
if err := SetupVPN(services.EdgeVPNDefaultInstance, cfg.APIAddress, "/", true, providerConfig); err != nil {
|
||||
return ErrorEvent("Failed setup VPN: %s", err.Error())
|
||||
}
|
||||
} else {
|
||||
} else if kairosBlockisDefined {
|
||||
logger.Info("Configuring API")
|
||||
if err := SetupAPI(cfg.APIAddress, "/", true, providerConfig); err != nil {
|
||||
return ErrorEvent("Failed setup VPN: %s", err.Error())
|
||||
|
Reference in New Issue
Block a user