chore: bootstrap platform GitOps state
This commit is contained in:
commit
a833be1d9e
40 files changed
+733
No files matched your search
@@ -0,0 +1,31 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: services-prod
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "20"
|
||||
spec:
|
||||
goTemplate: true
|
||||
goTemplateOptions: ["missingkey=error"]
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://git.dahyeon.us/dahyeon/service-state.git
|
||||
revision: main
|
||||
directories:
|
||||
- path: apps/*/overlays/prod
|
||||
template:
|
||||
metadata:
|
||||
name: "{{index .path.segments 1}}-prod"
|
||||
spec:
|
||||
project: services-prod
|
||||
source:
|
||||
repoURL: https://git.dahyeon.us/dahyeon/service-state.git
|
||||
targetRevision: main
|
||||
path: "{{.path.path}}"
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: "{{index .path.segments 1}}-prod"
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
Reference in new issue
Block a user