From ddec0f2be96c359ec129110e104f60b939578401 Mon Sep 17 00:00:00 2001 From: pashakostohrys Date: Thu, 20 Jul 2023 18:54:52 +0300 Subject: [PATCH] feat: support apply out of sync flag only Signed-off-by: pashakostohrys --- cmd/argocd/commands/app.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/argocd/commands/app.go b/cmd/argocd/commands/app.go index f45efb427053c..dec772b4472e7 100644 --- a/cmd/argocd/commands/app.go +++ b/cmd/argocd/commands/app.go @@ -1535,6 +1535,7 @@ func NewApplicationSyncCommand(clientOpts *argocdclient.ClientOptions) *cobra.Co force bool replace bool serverSideApply bool + applyOutOfSyncOnly bool async bool retryLimit int64 retryBackoffDuration time.Duration @@ -1707,6 +1708,9 @@ func NewApplicationSyncCommand(clientOpts *argocdclient.ClientOptions) *cobra.Co if serverSideApply { items = append(items, common.SyncOptionServerSideApply) } + if applyOutOfSyncOnly { + items = append(items, common.SyncOptionApplyOutOfSyncOnly) + } if len(items) == 0 { // for prevent send even empty array if not need