Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger preview namespace #26

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions argocd/app/app-spamooor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ spec:
# - name: jobs.gasburnertxsjob.image.tag
# value: latest
syncPolicy:
automated:
prune: true
allowEmpty: true
automated: {}
syncOptions:
- CreateNamespace=true
managedNamespaceMetadata:
labels:
# argocd.argoproj.io/instance: <$ARGOCD_APP_NAME>
argocd.argoproj.io/instance: spamooor
annotations:
argocd.argoproj.io/tracking-id: spamooor/Namespace:spamooor-cronjobs
# argocd.argoproj.io/tracking-id: <$ARGOCD_APP_NAME>:/Namespace:$ARGOCD_APP_NAMESPACE
argocd.argoproj.io/tracking-id: spamooor/Namespace:spamooor-cronjobs
18 changes: 11 additions & 7 deletions argocd/appset/spamooor-applicationset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
# {{ .labels }}
github:
owner: astriaorg
repo: astria
repo: spamooor # Repository to check for PRs
tokenRef:
key: token
secretName: github-pat
Expand All @@ -32,11 +32,11 @@ spec:
requeueAfterSeconds: 60
template:
metadata:
name: spamooor-pr-{{.number}}
name: spamooor-{{.number}}
spec:
destination:
server: https://kubernetes.default.svc
namespace: spamooor-pr-{{.number}}
namespace: spamooor-{{.number}}
project: default
source:
repoURL: https://github.com/astriaorg/spamooor.git
Expand All @@ -61,9 +61,13 @@ spec:
- name: jobs.gasburnertxsjob.image.tag
value: pr-{{.number}}
syncPolicy:
automated:
prune: true
selfHeal: false
allowEmpty: true
automated: {}
syncOptions:
- CreateNamespace=true
managedNamespaceMetadata:
labels:
# argocd.argoproj.io/instance: <$ARGOCD_APP_NAME>
argocd.argoproj.io/instance: spamooor-{{.number}}
annotations:
# argocd.argoproj.io/tracking-id: <$ARGOCD_APP_NAME>:/Namespace:$ARGOCD_APP_NAMESPACE
argocd.argoproj.io/tracking-id: spamooor-{{.number}}/Namespace:spamooor-{{.number}}