11apiVersion : v1
22kind : PersistentVolumeClaim
33metadata :
4- name : framework -data
4+ name : baseline -data
55 namespace : {{ .Values.namespace }}
66 labels :
77 {{- include "baft.labels" . | nindent 4 }}
88spec :
99 accessModes : [ReadWriteOnce]
1010 resources :
1111 requests :
12- storage : {{ .Values.framework .storage }}
12+ storage : {{ .Values.baseline .storage }}
1313---
1414apiVersion : apps/v1
1515kind : Deployment
1616metadata :
17- name : framework -sync
17+ name : baseline -sync
1818 namespace : {{ .Values.namespace }}
1919 labels :
2020 {{- include "baft.labels" . | nindent 4 }}
21- app.kubernetes.io/name : framework -sync
21+ app.kubernetes.io/name : baseline -sync
2222spec :
2323 replicas : 1
2424 strategy :
2525 type : Recreate
2626 selector :
2727 matchLabels :
28- app.kubernetes.io/name : framework -sync
28+ app.kubernetes.io/name : baseline -sync
2929 template :
3030 metadata :
3131 labels :
32- app.kubernetes.io/name : framework -sync
32+ app.kubernetes.io/name : baseline -sync
3333 spec :
3434 initContainers :
3535 - name : git-clone
3636 image : registry.k8s.io/git-sync/git-sync:v4
3737 args :
38- - " --repo={{ .Values.framework .repo }}"
39- - " --ref={{ .Values.framework .branch }}"
40- - " --root=/data/framework "
38+ - " --repo={{ .Values.baseline .repo }}"
39+ - " --ref={{ .Values.baseline .branch }}"
40+ - " --root=/data/baseline "
4141 - " --one-time"
4242 volumeMounts :
43- - name : framework -data
44- mountPath : /data/framework
45- {{- if .Values.framework .sshKeySecret }}
43+ - name : baseline -data
44+ mountPath : /data/baseline
45+ {{- if .Values.baseline .sshKeySecret }}
4646 env :
4747 - name : GIT_SYNC_SSH_KEY_FILE
4848 value : /etc/git-secret/id_rsa
@@ -55,44 +55,44 @@ spec:
5555 - name : git-sync
5656 image : registry.k8s.io/git-sync/git-sync:v4
5757 args :
58- - " --repo={{ .Values.framework .repo }}"
59- - " --ref={{ .Values.framework .branch }}"
60- - " --root=/data/framework "
61- - " --period={{ .Values.framework .syncInterval }}s"
58+ - " --repo={{ .Values.baseline .repo }}"
59+ - " --ref={{ .Values.baseline .branch }}"
60+ - " --root=/data/baseline "
61+ - " --period={{ .Values.baseline .syncInterval }}s"
6262 volumeMounts :
63- - name : framework -data
64- mountPath : /data/framework
65- {{- if .Values.framework .sshKeySecret }}
63+ - name : baseline -data
64+ mountPath : /data/baseline
65+ {{- if .Values.baseline .sshKeySecret }}
6666 env :
6767 - name : GIT_SYNC_SSH_KEY_FILE
6868 value : /etc/git-secret/id_rsa
6969 {{- end }}
70- {{- if .Values.framework .commitAgent.enabled }}
70+ {{- if .Values.baseline .commitAgent.enabled }}
7171 - name : commit-agent
7272 image : alpine/git:latest
7373 command : ["/bin/sh", "-c"]
7474 args :
7575 - |
7676 while true; do
77- sleep {{ .Values.framework .commitAgent.interval }}
78- cd /data/framework
77+ sleep {{ .Values.baseline .commitAgent.interval }}
78+ cd /data/baseline
7979 git add -A
8080 if ! git diff --cached --quiet; then
81- git commit -m "{{ .Values.framework .commitAgent.message }} — $(date -u +%Y-%m-%dT%H:%M:%SZ)"
81+ git commit -m "{{ .Values.baseline .commitAgent.message }} — $(date -u +%Y-%m-%dT%H:%M:%SZ)"
8282 git push || echo "Push failed — will retry next cycle"
8383 fi
8484 done
8585 volumeMounts :
86- - name : framework -data
87- mountPath : /data/framework
86+ - name : baseline -data
87+ mountPath : /data/baseline
8888 {{- end }}
8989 volumes :
90- - name : framework -data
90+ - name : baseline -data
9191 persistentVolumeClaim :
92- claimName : framework -data
93- {{- if .Values.framework .sshKeySecret }}
92+ claimName : baseline -data
93+ {{- if .Values.baseline .sshKeySecret }}
9494 - name : git-secret
9595 secret :
96- secretName : {{ .Values.framework .sshKeySecret }}
96+ secretName : {{ .Values.baseline .sshKeySecret }}
9797 defaultMode : 0400
9898 {{- end }}
0 commit comments