From 096b486dd858c6f74d724964a4dbbd4a411ef754 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 13 Aug 2023 16:48:39 +0200 Subject: [PATCH] go(run.go): add comment [skip ci] --- run.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run.go b/run.go index 77d483f..b244684 100644 --- a/run.go +++ b/run.go @@ -119,6 +119,11 @@ func run() error { //nolint:gocognit // TODO: deploy containers with podman using Ansible (https://www.redhat.com/sysadmin/automate-podman-ansible) // TODO: add health checks for pod's containers (db, app) + // load the config if possible, an error could mean multiple things: + // * just couldn't read the config + // * parsed the config but: + // * the schema provided is too new for the app - keep the older schema or update the app + // * the schema provided is too old for the app - upgrade the config schema or downgrade the app conf, err := config.Load(*configFlag, *configIsPathFlag) if err != nil { return fmt.Errorf("couldn't load the configuration (isPath: '%t') '%s', full err: %w",