Skip to content

Commit

Permalink
Trigger preview namespace (#26)
Browse files Browse the repository at this point in the history
* Trigger preview namespace

* Fix repo reference
  • Loading branch information
aajimal authored Jun 7, 2024
1 parent 142a971 commit 50f57dd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
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}}

0 comments on commit 50f57dd

Please sign in to comment.