Skip to content

Commit 4bbc6d3

Browse files
committed
Fix deploy coop maps
1 parent 9e19be4 commit 4bbc6d3

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ metadata:
55
labels:
66
app: faf-deploy-coop-maps
77
data:
8-
PATCH_VERSION: "65"
8+
PATCH_VERSION: "v9.0.2"
99
DATABASE_HOST: "mariadb"
1010
DATABASE_NAME: "faf_lobby"
11-
"deploy-coop-maps.py": |-
12-
{{ tpl ( .Files.Get "scripts/deploy-coop-maps.py" ) . | indent 4 }}
1311

1412
---
1513

@@ -44,13 +42,22 @@ spec:
4442
- secretRef:
4543
name: faf-legacy-deployment
4644
command: [ "sh" ]
47-
args: [ "-c", "pip install mysql-connector-python && python3 /tmp/deploy-coop-maps.py" ]
45+
args: [ "-c", "pip install mysql-connector-python && python3 /tmp/deploy-coop-maps.py $PATCH_VERSION --git-directory /tmp/maps" ]
4846
volumeMounts:
4947
- mountPath: /tmp/deploy-coop-maps.py
50-
name: faf-deploy-coop-maps
48+
name: faf-deploy-scripts
5149
subPath: "deploy-coop-maps.py"
50+
- mountPath: /opt/faf/data/maps
51+
name: faf-maps
5252
restartPolicy: Never
5353
volumes:
54+
- name: faf-deploy-scripts
55+
configMap:
56+
name: "faf-deploy-scripts"
5457
- name: faf-deploy-coop-maps
5558
configMap:
5659
name: "faf-deploy-coop-maps"
60+
- name: faf-maps
61+
hostPath:
62+
path: /opt/faf/data/maps
63+
type: Directory

0 commit comments

Comments
 (0)