Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding changes for new al image changes #2661

Merged
merged 5 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading