Provisioning: fixing some checks in config (#110729)

This commit is contained in:
Daniele Stefano Ferru
2025-09-05 23:27:35 +00:00
committed by GitHub
parent 62cc0f9c0e
commit 04c3d9bff1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -145,11 +145,11 @@ func setupFromConfig(cfg *setting.Cfg) (controllerCfg *provisioningControllerCon
}
dashboardsServerURL := operatorSec.Key("dashboards_server_url").String()
if provisioningServerURL == "" {
if dashboardsServerURL == "" {
return nil, fmt.Errorf("dashboards_server_url is required in [operator] section")
}
foldersServerURL := operatorSec.Key("folders_server_url").String()
if provisioningServerURL == "" {
if foldersServerURL == "" {
return nil, fmt.Errorf("folders_server_url is required in [operator] section")
}
@@ -215,7 +215,7 @@ func (rc *RepositoryController) handleDelete(ctx context.Context, obj *provision
} else {
err := rc.finalizer.process(ctx, repo, obj.Finalizers)
if err != nil {
logger.Warn("error running finalizer", "err")
logger.Warn("error running finalizer", "err", err)
}
}