chore(syncthing): override sync-data location

This commit is contained in:
David Landry 2024-05-25 15:50:19 -04:00
parent eed8daaba1
commit a760c7139e
3 changed files with 24 additions and 2 deletions

View file

@ -1,4 +1,5 @@
creation_rules:
- age: "age1y26vr5qt6th3wu92rnsgkqcpxxah3pqkqa4khcjjycm3kg40aqyqjgfzx9"
encrypted_regex: "^(data|stringData)$"
path_regex: .*\.enc\.ya?ml
path_regex: .*\.ya?ml
- age: "age1y26vr5qt6th3wu92rnsgkqcpxxah3pqkqa4khcjjycm3kg40aqyqjgfzx9"

View file

@ -17,6 +17,11 @@ spec:
readOnly: true
subPath: key.pem
volumes:
- name: sync-data
persistentVolumeClaim: null
nfs:
server: 192.168.1.215
path: /export/sync
- name: sync-keys
secret:
secretName: sync-secret

View file

@ -1,5 +1,21 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# secretGenerator:
# - name: mysecret
# files:
# - ./test-secret-generator.yaml
generators:
- ./test-secret-generator.yaml
- name: test-secret
|-
apiVersion: viaduct.ai/v1
kind: ksops
metadata:
name: test-secret
annotations:
config.kubernetes.io/function: |
exec:
path: ksops
files:
- ./test-ksops-secret.enc.yaml