From dc3f3cfb5171cbb2541f3b794639b3cc424ee8f8 Mon Sep 17 00:00:00 2001 From: GopeshSharma7 Date: Fri, 15 Dec 2023 12:52:10 +0530 Subject: [PATCH] Fix status field and uid issue --- pkg/controller/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 38e0520..031ce90 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -28,7 +28,7 @@ import ( var ( maxProcessRetry = 6 canaryKey = "$katafygio canary$" - unexported = []string{"selfLink", "uid", "resourceVersion", "generation", "managedFields"} + unexported = []string{"selfLink", "resourceVersion", "generation", "managedFields"} ) // Interface describe a standard kubernetes controller @@ -222,7 +222,7 @@ func (c *Controller) processItem(key string) error { // clear irrelevant attributes uc := obj.UnstructuredContent() - delete(uc, "status") + //delete(uc, "status") md := uc["metadata"].(map[string]interface{}) for _, attr := range unexported { delete(md, attr)