github.com/argoproj/argo-cd/v3@v3.2.1/applicationset/examples/pull-request-generator/pull-request-example-fasttemplate.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: ApplicationSet 3 metadata: 4 name: myapp 5 spec: 6 generators: 7 - pullRequest: 8 github: 9 # The GitHub organization or user. 10 owner: myorg 11 # The Github repository 12 repo: myrepo 13 # For GitHub Enterprise. (optional) 14 api: https://git.example.com/ 15 # Reference to a Secret containing an access token. (optional) 16 tokenRef: 17 secretName: github-token 18 key: token 19 # Labels is used to filter the PRs that you want to target. (optional) 20 labels: 21 - preview 22 template: 23 metadata: 24 name: 'myapp-{{ branch }}-{{ number }}' 25 spec: 26 source: 27 repoURL: 'https://github.com/myorg/myrepo.git' 28 targetRevision: '{{ head_sha }}' 29 path: helm-guestbook 30 helm: 31 parameters: 32 - name: "image.tag" 33 value: "pull-{{ head_sha }}" 34 project: default 35 destination: 36 server: https://kubernetes.default.svc 37 namespace: "{{ branch }}-{{ number }}" 38 syncPolicy: 39 syncOptions: 40 - CreateNamespace=true