Files
139de0ee5c feat: ApplicationSet Go template (#10026)
* ApplicationSet Go Template

Signed-off-by: Geoffrey Muselli <[email protected]>

* go template improvements

Signed-off-by: CI <[email protected]>

* update go mod

Signed-off-by: CI <[email protected]>

* fix tests

Signed-off-by: CI <[email protected]>

* fix tests

Signed-off-by: CI <[email protected]>

* fix tests

Signed-off-by: CI <[email protected]>

* Add tests for error handling

Signed-off-by: Geoffrey Muselli <[email protected]>

Co-authored-by: CI <[email protected]>
2022-08-08 11:50:53 -04:00

25 lines
729 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: guestbook
spec:
generators:
- git:
repoURL: https://github.com/argoproj/argo-cd.git
revision: HEAD
files:
- path: "applicationset/examples/git-generator-files-discovery/cluster-config/**/config.json"
template:
metadata:
name: '{{cluster.name}}-guestbook'
spec:
project: default
source:
repoURL: https://github.com/argoproj/argo-cd.git
targetRevision: HEAD
path: "applicationset/examples/git-generator-files-discovery/apps/guestbook"
destination:
server: https://kubernetes.default.svc
#server: '{{cluster.address}}'
namespace: guestbook