From 3e01aecffeba51044ecf43833b44a5318f25048d Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Fri, 10 Jan 2025 13:41:45 +0100 Subject: [PATCH] Use a recommendation instead of a warning --- bundle/config/mutator/process_target_mode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/config/mutator/process_target_mode.go b/bundle/config/mutator/process_target_mode.go index 38c175d13..920c5b5c3 100644 --- a/bundle/config/mutator/process_target_mode.go +++ b/bundle/config/mutator/process_target_mode.go @@ -168,7 +168,7 @@ func validateProductionMode(ctx context.Context, b *bundle.Bundle, isPrincipalUs // and neither is setting a principal. // We only show a warning for these cases since we didn't historically // report an error for them. - return diag.Warningf("target with 'mode: production' should " + advice) + return diag.Recommendation("target with 'mode: production' should " + advice) } return diag.Errorf("target with 'mode: production' must " + advice) }