Skip to content

Commit

Permalink
docs: added warning for multiple sources (argoproj#17670)
Browse files Browse the repository at this point in the history
* docs: added warning for multiple sources

Signed-off-by: Kostis (Codefresh) <[email protected]>

* docs: minor spelling

Signed-off-by: Kostis (Codefresh) <[email protected]>

---------

Signed-off-by: Kostis (Codefresh) <[email protected]>
  • Loading branch information
kostis-codefresh authored Mar 29, 2024
1 parent e26f4fb commit b711c5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/user-guide/multiple_sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ spec:
The above example has two sources specified. Argo CD will generate the manifests for each source separately and combine
the resulting manifests.
!!! warning "Do not abuse multiple sources"
Note that the example above is just for illustration purposes. This feature is **NOT** destined as a generic way to group your applications. Take a look at [applicationsets](../user-guide/application-set.md) and the [app-of-apps](../../operator-manual/cluster-bootstrapping/) pattern if you want to have a single entity for multiple applications. If you find yourself using more than 2-3 items in the `sources` array then you are almost certainly abusing this feature and you need to rethink your application grouping strategy.

If multiple sources produce the same resource (same `group`, `kind`, `name`, and `namespace`), the last source to
produce the resource will take precedence. Argo CD will produce a `RepeatedResourceWarning` in this case, but it will
sync the resources. This provides a convenient way to override a resource from a chart with a resource from a Git repo.
Expand Down

0 comments on commit b711c5b

Please sign in to comment.