mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* 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]>
30 lines
775 B
YAML
30 lines
775 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: cluster-addons
|
|
namespace: argocd
|
|
spec:
|
|
goTemplate: true
|
|
goTemplateOptions: ["missingkey=error"]
|
|
generators:
|
|
- git:
|
|
repoURL: https://github.com/argoproj/argo-cd.git
|
|
revision: HEAD
|
|
directories:
|
|
- path: applicationset/examples/git-generator-directory/cluster-addons/*
|
|
template:
|
|
metadata:
|
|
name: '{{.path.basename}}'
|
|
spec:
|
|
project: "my-project"
|
|
source:
|
|
repoURL: https://github.com/argoproj/argo-cd.git
|
|
targetRevision: HEAD
|
|
path: '{{.path.path}}'
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: '{{.path.basename}}'
|
|
syncPolicy:
|
|
syncOptions:
|
|
- CreateNamespace=true
|