Skip to content

Commit

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

Signed-off-by: Lukas Wöhrl <lukas.woehrl@plentymarkets.com>
Co-authored-by: Lukas Wöhrl <lukas.woehrl@plentymarkets.com>
  • Loading branch information
gcp-cherry-pick-bot[bot] and woehrl01 committed Jul 18, 2023
1 parent 1974b8a commit a05a3ee
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 @@ -1607,8 +1607,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
}
}

if local != "" {
Expand Down

0 comments on commit a05a3ee

Please sign in to comment.