-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpvc_argocd_appset.yaml
48 lines (48 loc) · 1.33 KB
/
pvc_argocd_appset.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
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: gotosocial-pvc-appset
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
goTemplate: true
# generator allows us to source specific values from an external k8s secret
generators:
- plugin:
configMapRef:
name: secret-var-plugin-generator
input:
parameters:
secret_vars:
- global_pvc_storage_class
- gotosocial_storage
- gotosocial_access_mode
template:
metadata:
name: gotosocial-pvc
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
project: gotosocial
destination:
server: "https://kubernetes.default.svc"
namespace: gotosocial
syncPolicy:
syncOptions:
- ApplyOutOfSyncOnly=true
automated:
prune: true
selfHeal: true
source:
repoURL: https://github.com/small-hack/argocd-apps.git
path: gotosocial/storage/pvc/
targetRevision: main
helm:
valuesObject:
# -- enable gotosocial valkeyuration pvc
pvc:
storageClassName: '{{ .global_pvc_storage_class }}'
accessMode: '{{ .gotosocial_access_mode }}'
storage: '{{ .gotosocial_storage }}'