From e680b673777bf73ddb7ce235d15f54bdfeaca774 Mon Sep 17 00:00:00 2001 From: pashakostohrys Date: Thu, 20 Jul 2023 18:41:20 +0300 Subject: [PATCH] feat: Apply out of sync option only Signed-off-by: pashakostohrys --- pkg/sync/common/types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/sync/common/types.go b/pkg/sync/common/types.go index 3aaeb6376..eb851af83 100644 --- a/pkg/sync/common/types.go +++ b/pkg/sync/common/types.go @@ -31,6 +31,8 @@ const ( SyncOptionServerSideApply = "ServerSideApply=true" // Sync option that disables resource deletion SyncOptionDisableDeletion = "Delete=false" + // Sync option that sync only out of sync resources + SyncOptionApplyOutOfSyncOnly = "ApplyOutOfSyncOnly=true" ) type PermissionValidator func(un *unstructured.Unstructured, res *metav1.APIResource) error