-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplicationset.yaml
More file actions
38 lines (38 loc) · 1.2 KB
/
applicationset.yaml
File metadata and controls
38 lines (38 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: codeai
namespace: argocd
spec:
generators:
- git:
repoURL: https://github.com/code-dot-org/k8s-gitops.git
revision: main
files:
- path: apps/codeai/deployments/staging/deployment.yaml
- path: apps/codeai/deployments/test/deployment.yaml
- path: apps/codeai/deployments/levelbuilder/deployment.yaml
- path: apps/codeai/deployments/production/deployment.yaml
template:
metadata:
name: codeai-{{path.basename}}
labels:
app.kubernetes.io/managed-by: kargo
kargo.akuity.io/project: kargo-project-codeai
annotations:
kargo.akuity.io/authorized-stage: kargo-project-codeai:{{path.basename}}
spec:
project: default
sources:
- repoURL: https://github.com/code-dot-org/k8s-gitops.git
targetRevision: '{{branch}}'
path: apps/codeai/deployments/{{path.basename}}/deploy
destination:
server: https://kubernetes.default.svc
namespace: '{{namespace}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- ServerSideApply=true