Skip to content

Commit 90e5e3a

Browse files
authored
added common disable sync otpion (#749)
Signed-off-by: reggie-k <[email protected]>
1 parent 38f73a7 commit 90e5e3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/sync/common/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const (
2828
SyncOptionPruneLast = "PruneLast=true"
2929
// Sync option that enables use of replace or create command instead of apply
3030
SyncOptionReplace = "Replace=true"
31+
// Sync option that disables use of replace or create command instead of apply
32+
SyncOptionDisableReplace = "Replace=false"
3133
// Sync option that enables use of --force flag, delete and re-create
3234
SyncOptionForce = "Force=true"
3335
// Sync option that enables use of --server-side flag instead of client-side
@@ -38,6 +40,8 @@ const (
3840
SyncOptionDisableDeletion = "Delete=false"
3941
// Sync option that sync only out of sync resources
4042
SyncOptionApplyOutOfSyncOnly = "ApplyOutOfSyncOnly=true"
43+
// Sync option that disables sync only out of sync resources
44+
SyncOptionDisableApplyOutOfSyncOnly = "ApplyOutOfSyncOnly=false"
4145
// Sync option that requires confirmation before deleting the resource
4246
SyncOptionDeleteRequireConfirm = "Delete=confirm"
4347
// Sync option that requires confirmation before deleting the resource

0 commit comments

Comments
 (0)