Skip to content

Commit

Permalink
adding changes for new al image changes (#2661)
Browse files Browse the repository at this point in the history
* adding changes for new al image changes
  • Loading branch information
EliseCastle23 authored Nov 7, 2024
1 parent 46fee37 commit 80fc41a
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
13 changes: 12 additions & 1 deletion kube/services/audit-service/audit-service-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ spec:
readOnly: true
mountPath: "/src/audit-service-config.yaml"
subPath: "audit-service-config.yaml"
# Added an additional volume mount for new images using the /<app-name> directory, while retaining the 'src' mount for backward compatibility.
- name: "config-volume"
readOnly: true
mountPath: "/audit/audit-service-config.yaml"
subPath: "audit-service-config.yaml"
resources:
requests:
cpu: 100m
Expand All @@ -109,6 +114,11 @@ spec:
readOnly: true
mountPath: "/src/audit-service-config.yaml"
subPath: "audit-service-config.yaml"
# Added an additional volume mount for new images using the /<app-name> directory, while retaining the 'src' mount for backward compatibility.
- name: "config-volume"
readOnly: true
mountPath: "/audit/audit-service-config.yaml"
subPath: "audit-service-config.yaml"
resources:
limits:
cpu: 0.8
Expand All @@ -117,4 +127,5 @@ spec:
args:
- "-c"
- |
/env/bin/alembic upgrade head
# Managing virtual environments via poetry instead of python since the AL base image update, but retaining backwards compatibility
poetry run alembic upgrade head || /env/bin/alembic upgrade head
14 changes: 13 additions & 1 deletion kube/services/metadata/metadata-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ spec:
readOnly: true
mountPath: /src/.env
subPath: metadata.env
# Added an additional volume mount for new images using the /<app-name> directory, while retaining the 'src' mount for backward compatibility.
- name: config-volume-g3auto
readOnly: true
mountPath: /mds/.env
subPath: metadata.env
- name: config-volume
readOnly: true
mountPath: /aggregate_config.json
Expand All @@ -140,6 +145,11 @@ spec:
readOnly: true
mountPath: /src/.env
subPath: metadata.env
# Added an additional volume mount for new images using the /<app-name> directory, while retaining the 'src' mount for backward compatibility.
- name: config-volume-g3auto
readOnly: true
mountPath: /mds/.env
subPath: metadata.env
resources:
limits:
cpu: 0.8
Expand All @@ -148,4 +158,6 @@ spec:
args:
- "-c"
- |
/env/bin/alembic upgrade head
# Managing virtual environments via poetry instead of python since the AL base image update, but retaining backwards compatibility
poetry run alembic upgrade head || /env/bin/alembic upgrade head
13 changes: 12 additions & 1 deletion kube/services/requestor/requestor-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ spec:
readOnly: true
mountPath: "/src/requestor-config.yaml"
subPath: "requestor-config.yaml"
# Added an additional volume mount for new images using the /<app-name> directory, while retaining the 'src' mount for backward compatibilit
- name: "config-volume"
readOnly: true
mountPath: "/requestor/requestor-config.yaml"
subPath: "requestor-config.yaml"
resources:
requests:
cpu: 100m
Expand All @@ -106,6 +111,11 @@ spec:
readOnly: true
mountPath: "/src/requestor-config.yaml"
subPath: "requestor-config.yaml"
# Added an additional volume mount for new images using the /<app-name> directory, while retaining the 'src' mount for backward compatibilit
- name: "config-volume"
readOnly: true
mountPath: "/requestor/requestor-config.yaml"
subPath: "requestor-config.yaml"
resources:
limits:
cpu: 0.8
Expand All @@ -114,4 +124,5 @@ spec:
args:
- "-c"
- |
/env/bin/alembic upgrade head
# Managing virtual environments via poetry instead of python since the AL base image update, but retaining backwards compatibility
poetry run alembic upgrade head || /env/bin/alembic upgrade head
3 changes: 2 additions & 1 deletion kube/services/wts/wts-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ spec:
if hash alembic 2>/dev/null; then
echo "Running DB migration"
cd /wts
alembic upgrade head
# Managing virtual environments via poetry instead of python since the AL base image update, but retaining backwards compatibility
poetry run alembic upgrade head || alembic upgrade head
else
# WTS < 0.3.0 does not have the DB migration setup
echo "Alembic not installed - not running DB migration"
Expand Down

0 comments on commit 80fc41a

Please sign in to comment.