Skip to content

Commit

Permalink
fix: Provide better error message when application source is missing …
Browse files Browse the repository at this point in the history
…some settings (argoproj#10694)

Signed-off-by: cleverhu <shouping.hu@daocloud.io>

Signed-off-by: cleverhu <shouping.hu@daocloud.io>
  • Loading branch information
cleverhu authored and ashutosh16 committed Oct 7, 2022
1 parent 0289275 commit 709d752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/argo/argo.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func ValidatePermissions(ctx context.Context, spec *argoappv1.ApplicationSpec, p
if spec.Source.RepoURL == "" || (spec.Source.Path == "" && spec.Source.Chart == "") {
conditions = append(conditions, argoappv1.ApplicationCondition{
Type: argoappv1.ApplicationConditionInvalidSpecError,
Message: "spec.source.repoURL and spec.source.path either spec.source.chart are required",
Message: "spec.source.repoURL and either spec.source.path or spec.source.chart are required",
})
return conditions, nil
}
Expand Down

0 comments on commit 709d752

Please sign in to comment.