mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-04-05 00:08:49 +02:00
* Add support for missingkey=error in ApplicationSets Signed-off-by: Radon Rosborough <rrosborough@plaid.com> * options for cluster generator too Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --------- Signed-off-by: Radon Rosborough <rrosborough@plaid.com> Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: myapp
|
|
spec:
|
|
goTemplate: true
|
|
goTemplateOptions: ["missingkey=error"]
|
|
generators:
|
|
- pullRequest:
|
|
github:
|
|
# The GitHub organization or user.
|
|
owner: myorg
|
|
# The Github repository
|
|
repo: myrepo
|
|
# For GitHub Enterprise. (optional)
|
|
api: https://git.example.com/
|
|
# Reference to a Secret containing an access token. (optional)
|
|
tokenRef:
|
|
secretName: github-token
|
|
key: token
|
|
# Labels is used to filter the PRs that you want to target. (optional)
|
|
labels:
|
|
- preview
|
|
template:
|
|
metadata:
|
|
name: 'myapp-{{ .branch }}-{{ .number }}'
|
|
labels:
|
|
key1: '{{ index .labels 0 }}'
|
|
spec:
|
|
source:
|
|
repoURL: 'https://github.com/myorg/myrepo.git'
|
|
targetRevision: '{{ .head_sha }}'
|
|
path: helm-guestbook
|
|
helm:
|
|
parameters:
|
|
- name: "image.tag"
|
|
value: "pull-{{ .head_sha }}"
|
|
project: default
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: "{{ .branch }}-{{ .number }}"
|
|
syncPolicy:
|
|
syncOptions:
|
|
- CreateNamespace=true
|