Skip to content

Commit ed70eac

Browse files
authored
feat: add sync delete option (#507)
Signed-off-by: Soumya Ghosh Dastidar <[email protected]>
1 parent 917f5a0 commit ed70eac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/sync/common/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const (
2929
SyncOptionReplace = "Replace=true"
3030
// Sync option that enables use of --server-side flag instead of client-side
3131
SyncOptionServerSideApply = "ServerSideApply=true"
32+
// Sync option that disables resource deletion
33+
SyncOptionDisableDeletion = "Delete=false"
3234
)
3335

3436
type PermissionValidator func(un *unstructured.Unstructured, res *metav1.APIResource) error

0 commit comments

Comments
 (0)