From 0ec717bc8da713f5862f47224a2f6e59b5f41a7c Mon Sep 17 00:00:00 2001 From: Ciara Stacke Date: Wed, 29 May 2024 09:30:17 +0100 Subject: [PATCH] Update secrets on resourceversion change only --- internal/mode/static/manager.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/mode/static/manager.go b/internal/mode/static/manager.go index f31f5d3834..f3b92ad076 100644 --- a/internal/mode/static/manager.go +++ b/internal/mode/static/manager.go @@ -420,6 +420,9 @@ func registerControllers( }, { objectType: &apiv1.Secret{}, + options: []controller.Option{ + controller.WithK8sPredicate(k8spredicate.ResourceVersionChangedPredicate{}), + }, }, { objectType: &discoveryV1.EndpointSlice{},