Skip to content

Commit 9d45c6b

Browse files
committed
Update secrets on resource version change only (nginx#2047)
Update secrets on resourceversion change only
1 parent 7db44b7 commit 9d45c6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/mode/static/manager.go

+3
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ func registerControllers(
420420
},
421421
{
422422
objectType: &apiv1.Secret{},
423+
options: []controller.Option{
424+
controller.WithK8sPredicate(k8spredicate.ResourceVersionChangedPredicate{}),
425+
},
423426
},
424427
{
425428
objectType: &discoveryV1.EndpointSlice{},

0 commit comments

Comments
 (0)