From 1e61336b56d60d7d87de5b0dd7352a757e9ea87d Mon Sep 17 00:00:00 2001 From: rkthtrifork Date: Tue, 4 Jun 2024 11:46:34 +0200 Subject: [PATCH] debug --- opensearch-operator/pkg/reconcilers/ismpolicy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opensearch-operator/pkg/reconcilers/ismpolicy.go b/opensearch-operator/pkg/reconcilers/ismpolicy.go index f24bcbb5a..81f3cc2a2 100644 --- a/opensearch-operator/pkg/reconcilers/ismpolicy.go +++ b/opensearch-operator/pkg/reconcilers/ismpolicy.go @@ -12,6 +12,7 @@ import ( "github.com/Opster/opensearch-k8s-operator/opensearch-operator/pkg/reconcilers/k8s" "github.com/Opster/opensearch-k8s-operator/opensearch-operator/pkg/reconcilers/util" "github.com/cisco-open/operator-tools/pkg/reconciler" + "github.com/davecgh/go-spew/spew" "github.com/go-logr/logr" "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/tools/record" @@ -200,7 +201,9 @@ func (r *IsmPolicyReconciler) Reconcile() (retResult ctrl.Result, retErr error) return } + r.logger.Info(policyId) existingPolicy, retErr := services.GetPolicy(r.ctx, r.osClient, policyId) + r.logger.Info(spew.Sdump(*existingPolicy)) if retErr != nil && retErr != services.ErrNotFound { reason = "failed to get policy from Opensearch API" r.logger.Error(retErr, reason)