You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2026/09/18 06:43:09 UTC
(camel-k) 07/09: added error handling
This is an automated email from the ASF dual-hosted git repository.
squakez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit bb73e8d3ae765e3f4d32ab3a975e2e46ad994ea4
Author: Keerthan <po...@gmail.com>
AuthorDate: Thu Sep 17 18:42:07 2026 +0530
added error handling
---
pkg/cmd/operator/operator.go | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pkg/cmd/operator/operator.go b/pkg/cmd/operator/operator.go
index 1ec490d77..c17e4796b 100644
--- a/pkg/cmd/operator/operator.go
+++ b/pkg/cmd/operator/operator.go
@@ -202,7 +202,10 @@ func Run(healthPort, monitoringPort int32, leaderElection bool, leaderElectionID
selectors[&batchv1.CronJob{}] = selector
}
- platform.CertManagerInstalled, _ = kubernetes.IsAPIResourceInstalled(bootstrapClient, "cert-manager.io/v1", "ClusterIssuer")
+ if platform.CertManagerInstalled, err= kubernetes.IsAPIResourceInstalled(bootstrapClient, "cert-manager.io/v1", "ClusterIssuer"); err!=nil{
+ log.Error(err, "failed to check for cert-manager presence, assuming not installed")
+ }
+
options := cache.Options{
ByObject: selectors,