From 35835982990311b35d1c402d15db4da2a1244208 Mon Sep 17 00:00:00 2001 From: everettraven Date: Tue, 30 Jan 2024 11:43:51 -0500 Subject: [PATCH] actually handle error Signed-off-by: everettraven --- internal/cmd/helm-operator/run/cmd.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/cmd/helm-operator/run/cmd.go b/internal/cmd/helm-operator/run/cmd.go index 5603616e71..91eb4aa7e9 100644 --- a/internal/cmd/helm-operator/run/cmd.go +++ b/internal/cmd/helm-operator/run/cmd.go @@ -159,6 +159,10 @@ func run(cmd *cobra.Command, f *flags.Flags) { configureWatchNamespaces(&options, log) err = configureSelectors(&options, ws, options.Scheme) + if err != nil { + log.Error(err, "Failed to configure default selectors for caching") + os.Exit(1) + } if options.NewClient == nil { options.NewClient = client.New }