Skip to content

Commit

Permalink
try pull request generator
Browse files Browse the repository at this point in the history
mikutas committed Dec 12, 2024
1 parent b09e345 commit 5ba4d42
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions helm/appsets/templates/pull-request-generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: podinfo
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- pullRequest:
github:
# The GitHub organization or user.
owner: mikutas
# The Github repository
repo: podinfo
# Labels is used to filter the PRs that you want to target. (optional)
labels:
- preview
requeueAfterSeconds: 1800
template:
metadata:
name: podinfo-{{ "'{{.number}}'" }}
spec:
source:
repoURL: https://github.com/mikutas/podinfo.git
targetRevision: {{ "'{{.head_sha}}'" }}
path: charts/podinfo
helm:
valuesObject:
fullnameOverride: {{ "'{{.number}}'" }}
ui:
message: "PR #{{ "'{{.number}}'" }}: sha={{ "'{{.head_sha}}'" }}"
project: foo
destination:
server: https://kubernetes.default.svc
namespace: podinfo
syncPolicy:
syncOptions:
- CreateNamespace=true

0 comments on commit 5ba4d42

Please sign in to comment.