Skip to content

Commit 80930e3

Browse files
committed
Try removing subpath again
1 parent 6b2cbdc commit 80930e3

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

apps/faf-legacy-deployment/templates/deploy-coop-maps.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ spec:
3737
imagePullPolicy: Always
3838
name: faf-deploy-coop
3939
workingDir: /workspace
40+
env:
41+
- name: GRADLE_USER_HOME
42+
value: /tmp/gradle-home
4043
envFrom:
4144
- configMapRef:
4245
name: faf-deploy-coop
@@ -45,12 +48,10 @@ spec:
4548
command: [ "gradle", "deployCoopMaps" ]
4649
# We need to mount single files via subpath because Gradle breaks otherwise (symbolic link to read-only directory)
4750
volumeMounts:
48-
- mountPath: /workspace/build.gradle.kts
51+
- mountPath: /workspace
4952
name: faf-deploy-scripts
50-
subPath: "build.gradle.kts"
51-
- mountPath: /workspace/CoopMapDeployer.kt
52-
name: faf-deploy-scripts
53-
subPath: "CoopMapDeployer.kt"
53+
- mountPath: /workspace/.gradle
54+
name: gradle-internal
5455
- mountPath: /workspace/legacy-featured-mod-files
5556
name: faf-featured-mods
5657
restartPolicy: Never
@@ -61,4 +62,6 @@ spec:
6162
- name: faf-featured-mods
6263
hostPath:
6364
path: /opt/faf/data/legacy-featured-mod-files
64-
type: Directory
65+
type: Directory
66+
- name: gradle-internal
67+
emptyDir: {}

apps/faf-legacy-deployment/templates/deploy-coop.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ spec:
3737
imagePullPolicy: Always
3838
name: faf-deploy-coop
3939
workingDir: /workspace
40+
env:
41+
- name: GRADLE_USER_HOME
42+
value: /tmp/gradle-home
4043
envFrom:
4144
- configMapRef:
4245
name: faf-deploy-coop
@@ -45,12 +48,8 @@ spec:
4548
command: [ "gradle", "deployCoop" ]
4649
# We need to mount single files via subpath because Gradle breaks otherwise (symbolic link to read-only directory)
4750
volumeMounts:
48-
- mountPath: /workspace/build.gradle.kts
51+
- mountPath: /workspace
4952
name: faf-deploy-scripts
50-
subPath: "build.gradle.kts"
51-
- mountPath: /workspace/CoopDeployer.kt
52-
name: faf-deploy-scripts
53-
subPath: "CoopDeployer.kt"
5453
- mountPath: /workspace/legacy-featured-mod-files
5554
name: faf-featured-mods
5655
restartPolicy: Never

0 commit comments

Comments
 (0)