Skip to content

Commit

Permalink
fix(cli): allow argocd cli app command for multi source apps (argopro…
Browse files Browse the repository at this point in the history
…j#14256)

Signed-off-by: Lukas Wöhrl <lukas.woehrl@plentymarkets.com>
  • Loading branch information
woehrl01 authored and tesla59 committed Dec 16, 2023
1 parent 30637a2 commit 37dad29
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmd/argocd/commands/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1661,8 +1661,15 @@ func NewApplicationSyncCommand(clientOpts *argocdclient.ClientOptions) *cobra.Co
errors.CheckError(err)

if app.Spec.HasMultipleSources() {
log.Fatal("argocd cli does not work on multi-source app")
return
if revision != "" {
log.Fatal("argocd cli does not work on multi-source app with --revision flag")
return
}

if local != "" {
log.Fatal("argocd cli does not work on multi-source app with --local flag")
return
}
}

// filters out only those resources that needs to be synced
Expand Down

0 comments on commit 37dad29

Please sign in to comment.