Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rkthtrifork committed Jun 4, 2024
1 parent d482d01 commit 1e61336
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opensearch-operator/pkg/reconcilers/ismpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1e61336

Please sign in to comment.