/
bootstrap-app-set.yaml
70 lines (70 loc) · 1.9 KB
/
bootstrap-app-set.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: bootstrap
spec:
generators:
- matrix:
generators:
- list:
elements:
- repoURL: https://github.com/siderolabs/contrib.git
revision: HEAD
repoPath: examples/omni/apps/*/*
- git:
repoURL: '{{ repoURL }}'
revision: '{{ revision }}'
directories:
- path: '{{ repoPath }}'
syncPolicy:
preserveResourcesOnDeletion: true
template:
metadata:
name: '{{ path[3] }}-{{ path.basenameNormalized }}'
namespace: argocd
spec:
project: default
source:
repoURL: '{{ repoURL }}'
targetRevision: '{{ revision }}'
path: '{{ path }}'
destination:
server: https://kubernetes.default.svc
namespace: '{{ path[3] }}'
syncPolicy:
automated:
prune: false
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
- ApplyOutOfSyncOnly=true
- RespectIgnoreDifferences=true
- SkipDryRunOnMissingResource=true
retry:
limit: -1 # Infinite retries
backoff:
duration: 30s
factor: 2
maxDuration: 5m
ignoreDifferences:
# Cilium generated certs
- name: cilium-ca
kind: Secret
namespace: kube-system
jsonPointers:
- /data/ca.crt
- /data/ca.key
- name: hubble-server-certs
kind: Secret
namespace: kube-system
jsonPointers:
- /data/ca.crt
- /data/tls.crt
- /data/tls.key
- name: hubble-relay-client-certs
kind: Secret
namespace: kube-system
jsonPointers:
- /data/ca.crt
- /data/tls.crt
- /data/tls.key