From 1fa303db75656d1b1123633e173fee22d87f3f27 Mon Sep 17 00:00:00 2001 From: Alexander Greene Date: Sun, 1 May 2022 06:08:19 -0700 Subject: [PATCH] Fix currentServiceAccount debug message (#2765) Signed-off-by: Alexander Greene Upstream-repository: operator-lifecycle-manager Upstream-commit: 943a726ab1a516bc231e2fe96d13fc2e47bf4448 --- .../pkg/controller/registry/reconciler/grpc.go | 2 +- .../pkg/controller/registry/reconciler/grpc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/operator-lifecycle-manager/pkg/controller/registry/reconciler/grpc.go b/staging/operator-lifecycle-manager/pkg/controller/registry/reconciler/grpc.go index 94494ac752..4f63cc87aa 100644 --- a/staging/operator-lifecycle-manager/pkg/controller/registry/reconciler/grpc.go +++ b/staging/operator-lifecycle-manager/pkg/controller/registry/reconciler/grpc.go @@ -150,7 +150,7 @@ func (c *GrpcRegistryReconciler) currentServiceAccount(source grpcCatalogSourceD serviceAccountName := source.ServiceAccount().GetName() serviceAccount, err := c.Lister.CoreV1().ServiceAccountLister().ServiceAccounts(source.GetNamespace()).Get(serviceAccountName) if err != nil { - logrus.WithField("service", serviceAccount).Debug("couldn't find service in cache") + logrus.WithField("serviceAccount", serviceAccount).Debug("couldn't find serviceAccount in cache") return nil } return serviceAccount diff --git a/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/reconciler/grpc.go b/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/reconciler/grpc.go index 94494ac752..4f63cc87aa 100644 --- a/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/reconciler/grpc.go +++ b/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/reconciler/grpc.go @@ -150,7 +150,7 @@ func (c *GrpcRegistryReconciler) currentServiceAccount(source grpcCatalogSourceD serviceAccountName := source.ServiceAccount().GetName() serviceAccount, err := c.Lister.CoreV1().ServiceAccountLister().ServiceAccounts(source.GetNamespace()).Get(serviceAccountName) if err != nil { - logrus.WithField("service", serviceAccount).Debug("couldn't find service in cache") + logrus.WithField("serviceAccount", serviceAccount).Debug("couldn't find serviceAccount in cache") return nil } return serviceAccount