Skip to content

Commit

Permalink
Make example code consistent with examples elsewhere.
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Douglas <[email protected]>
  • Loading branch information
ndouglas committed Mar 7, 2024
1 parent c54ff37 commit fe93182
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/user-guide/application-set.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Automating the generation of Argo CD Applications with the ApplicationSet Controller

The [ApplicationSet controller](../operator-manual/applicationset/index.md) adds Application automation and seeks to improve multi-cluster support and cluster multitenant support within Argo CD. Argo CD Applications may be templated from multiple different sources, including from Git or Argo CD's own defined cluster list.
The [ApplicationSet controller](../operator-manual/applicationset/index.md) adds Application automation and seeks to improve multi-cluster support and cluster multitenant support within Argo CD. Argo CD Applications may be templated from multiple different sources, including from Git or Argo CD's own defined cluster list.

The set of tools provided by the ApplicationSet controller may also be used to allow developers (without access to the Argo CD namespace) to independently create Applications without cluster-administrator intervention.

Expand All @@ -17,6 +17,8 @@ kind: ApplicationSet
metadata:
name: guestbook
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- list:
elements:
Expand All @@ -28,15 +30,15 @@ spec:
url: https://9.8.7.6
template:
metadata:
name: '{{cluster}}-guestbook'
name: '{{.cluster}}-guestbook'
spec:
project: default
project: my-project
source:
repoURL: https://github.com/argoproj/argo-cd.git
repoURL: https://github.com/infra-team/cluster-deployments.git
targetRevision: HEAD
path: applicationset/examples/list-generator/guestbook/{{cluster}}
path: guestbook/{{.cluster}}
destination:
server: '{{url}}'
server: '{{.url}}'
namespace: guestbook
```
Expand Down

0 comments on commit fe93182

Please sign in to comment.