Files
49c3a3c246 feat(appset): add support for missingkey=error in ApplicationSets (#13731) (#13733)
* Add support for missingkey=error in ApplicationSets

Signed-off-by: Radon Rosborough <[email protected]>

* options for cluster generator too

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Radon Rosborough <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2023-05-30 11:41:29 -04:00

27 lines
792 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: guestbook
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
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