File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed
apps/faf-legacy-deployment/templates Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -39,28 +39,29 @@ spec:
3939 containers :
4040 - image : gradle:9.2-jdk21
4141 imagePullPolicy : Always
42- name : faf-coop-deployment
42+ name : faf-deploy-coop
4343 workingDir : /workspace
4444 envFrom :
4545 - configMapRef :
4646 name : faf-deploy-coop
4747 - secretRef :
4848 name : faf-legacy-deployment
4949 command : [ "gradle", "run" ]
50+ # We need to mount single files via subpath because Gradle breaks otherwise (symbolic link to read-only directory)
5051 volumeMounts :
5152 - mountPath : /workspace/build.gradle.kts
52- name : faf-deploy-coop
53+ name : faf-deploy-scripts
5354 subPath : " build.gradle.kts"
5455 - mountPath : /workspace/CoopDeployer.kt
55- name : faf-deploy-coop
56+ name : faf-deploy-scripts
5657 subPath : " CoopDeployer.kt"
5758 - mountPath : /workspace/legacy-featured-mod-files
5859 name : faf-featured-mods
5960 restartPolicy : Never
6061 volumes :
61- - name : faf-deploy-coop
62+ - name : faf-deploy-scripts
6263 configMap :
63- name : " faf-deploy-coop "
64+ name : " faf-deploy-scripts "
6465 - name : faf-featured-mods
6566 hostPath :
6667 path : /opt/faf/data/legacy-featured-mod-files
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : ConfigMap
3+ metadata :
4+ name : faf-deploy-scripts
5+ labels :
6+ app : faf-deploy-coop
7+ data :
8+ # Loop through all files in the 'scripts' directory
9+ {{- range $path, $bytes := .Files.Glob "scripts/*" }}
10+ {{- $file := base $path }}
11+ {{ $file }} : |-
12+ {{ tpl ($bytes | toString) $ | indent 4 }}
13+ {{- end }}
You can’t perform that action at this time.
0 commit comments