Skip to content

Commit

Permalink
supporess warnings to avoid panic message on kots startup
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Dec 19, 2023
1 parent c40018d commit 7581262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/embeddedcluster/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func GetCurrentInstallation(ctx context.Context) (*embeddedclusterv1beta1.Instal
}
scheme := runtime.NewScheme()
embeddedclusterv1beta1.AddToScheme(scheme)
kbClient, err := kbclient.New(clientConfig, kbclient.Options{Scheme: scheme})
kbClient, err := kbclient.New(clientConfig, kbclient.Options{Scheme: scheme, WarningHandler: kbclient.WarningHandlerOptions{SuppressWarnings: true}})
if err != nil {
return nil, fmt.Errorf("failed to get kubebuilder client: %w", err)
}
Expand Down

0 comments on commit 7581262

Please sign in to comment.