-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsops-secret-operator.yaml
39 lines (39 loc) · 996 Bytes
/
sops-secret-operator.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
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: sops-secrets
namespace: argocd
spec:
generators:
- clusters:
selector:
matchLabels:
sopsSecret: "true"
- list:
elements:
- name: in-cluster
template:
metadata:
name: "sops-secrets-{{name}}"
spec:
project: infra
source:
chart: sops-secrets-operator
repoURL: https://isindir.github.io/sops-secrets-operator
targetRevision: 0.20.4
helm:
valuesObject:
secretsAsFiles:
- mountPath: /etc/sops-age-key-file
name: sops-age-key-file
secretName: sops-age-key
extraEnv:
- name: SOPS_AGE_KEY_FILE
value: /etc/sops-age-key-file/key.txt
destination:
namespace: sops-operator
name: "{{name}}"
syncPolicy:
automated: {}
syncOptions:
- CreateNamespace=true