Skip to content

Commit 3583598

Browse files
committed
actually handle error
Signed-off-by: everettraven <[email protected]>
1 parent a5c7cce commit 3583598

File tree

1 file changed

+4
-0
lines changed
  • internal/cmd/helm-operator/run

1 file changed

+4
-0
lines changed

internal/cmd/helm-operator/run/cmd.go

+4
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ func run(cmd *cobra.Command, f *flags.Flags) {
159159

160160
configureWatchNamespaces(&options, log)
161161
err = configureSelectors(&options, ws, options.Scheme)
162+
if err != nil {
163+
log.Error(err, "Failed to configure default selectors for caching")
164+
os.Exit(1)
165+
}
162166
if options.NewClient == nil {
163167
options.NewClient = client.New
164168
}

0 commit comments

Comments
 (0)