diff --git a/pkg/sync/common/types.go b/pkg/sync/common/types.go index bcff45b7a..3aaeb6376 100644 --- a/pkg/sync/common/types.go +++ b/pkg/sync/common/types.go @@ -29,6 +29,8 @@ const ( SyncOptionReplace = "Replace=true" // Sync option that enables use of --server-side flag instead of client-side SyncOptionServerSideApply = "ServerSideApply=true" + // Sync option that disables resource deletion + SyncOptionDisableDeletion = "Delete=false" ) type PermissionValidator func(un *unstructured.Unstructured, res *metav1.APIResource) error