kustomize
This commit is contained in:
@@ -1,43 +1,37 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
kind: Application
|
||||
metadata:
|
||||
name: infrastructure-apps
|
||||
name: infrastructure-app-of-apps
|
||||
namespace: argocd
|
||||
labels:
|
||||
app.kubernetes.io/name: infrastructure-app-of-apps
|
||||
app.kubernetes.io/part-of: platform
|
||||
app.kubernetes.io/managed-by: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "-1"
|
||||
spec:
|
||||
goTemplate: true
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://github.com/snothub/sturdy-adventure.git
|
||||
revision: HEAD
|
||||
directories:
|
||||
- path: argocd/infra/*.yaml
|
||||
template:
|
||||
metadata:
|
||||
name: "{{ .path.basenameNormalized }}"
|
||||
labels:
|
||||
app.kubernetes.io/name: "{{ .path.basenameNormalized }}"
|
||||
app.kubernetes.io/part-of: platform
|
||||
app.kubernetes.io/managed-by: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://github.com/snothub/sturdy-adventure.git
|
||||
targetRevision: HEAD
|
||||
path: "{{ .path.dir }}"
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: argocd
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- Validate=true
|
||||
- ServerSideApply=true
|
||||
retry:
|
||||
limit: 5
|
||||
backoff:
|
||||
duration: 5s
|
||||
factor: 2
|
||||
maxDuration: 3m
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://github.com/fortedigital/sturdy-adventure.git
|
||||
targetRevision: HEAD
|
||||
path: argocd
|
||||
kustomize:
|
||||
enable: true
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: argocd
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- Validate=true
|
||||
- ServerSideApply=true
|
||||
timeout: 300s
|
||||
retry:
|
||||
limit: 5
|
||||
backoff:
|
||||
duration: 5s
|
||||
factor: 2
|
||||
maxDuration: 3m
|
||||
|
||||
Reference in New Issue
Block a user