From b514b309a18027e12e394962a4570ebf275865a8 Mon Sep 17 00:00:00 2001 From: rkthtrifork Date: Wed, 28 Aug 2024 11:11:19 +0200 Subject: [PATCH] debug operator --- opensearch-operator/pkg/reconcilers/indextemplate.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opensearch-operator/pkg/reconcilers/indextemplate.go b/opensearch-operator/pkg/reconcilers/indextemplate.go index 60638dfc..dc12ba84 100644 --- a/opensearch-operator/pkg/reconcilers/indextemplate.go +++ b/opensearch-operator/pkg/reconcilers/indextemplate.go @@ -278,7 +278,8 @@ func (r *IndexTemplateReconciler) equal(request *requests.IndexTemplate, respons logger.Info(fmt.Sprintf("DataStream: %v", cmp.Equal(request.DataStream, response.IndexTemplate.DataStream, cmpopts.EquateEmpty()))) logger.Info(fmt.Sprintf("Template: %v", cmp.Equal(request.Template, response.IndexTemplate.Template, cmpopts.EquateEmpty()))) logger.Info(fmt.Sprintf("Template.Settings: %v", cmp.Equal(request.Template.Settings, response.IndexTemplate.Template.Settings, cmpopts.EquateEmpty()))) - logger.Info(fmt.Sprintf("Template.Settings string: %v", cmp.Equal(request.Template.Settings.String(), response.IndexTemplate.Template.Settings.String(), cmpopts.EquateEmpty()))) + logger.Info(fmt.Sprintf("Template.Settings string new: %s", request.Template.Settings.String())) + logger.Info(fmt.Sprintf("Template.Settings string existing: %s", response.IndexTemplate.Template.Settings.String())) logger.Info(fmt.Sprintf("ComposedOf: %v", cmp.Equal(request.ComposedOf, response.IndexTemplate.ComposedOf, cmpopts.EquateEmpty()))) logger.Info(fmt.Sprintf("Priority: %v", cmp.Equal(request.Priority, response.IndexTemplate.Priority, cmpopts.EquateEmpty()))) logger.Info(fmt.Sprintf("Version: %v", cmp.Equal(request.Version, response.IndexTemplate.Version, cmpopts.EquateEmpty())))