From 9225855f430e1b78f44d9ab12474d7c568817050 Mon Sep 17 00:00:00 2001 From: Johnathan Kupferer Date: Thu, 24 Oct 2024 15:09:14 -0400 Subject: [PATCH] Remove managedFields and diffBase from ResourceClaim status --- operator/resourcewatcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/operator/resourcewatcher.py b/operator/resourcewatcher.py index 98402e6..483017b 100644 --- a/operator/resourcewatcher.py +++ b/operator/resourcewatcher.py @@ -33,6 +33,9 @@ class ResourceWatcher: class CacheEntry: def __init__(self, resource): + resource['metadata'].pop('managedFields', None) + if 'status' in resource: + resource['status'].pop('diffBase', None) self.resource = resource self.cache_datetime = datetime.now(timezone.utc)