Skip to content

Commit

Permalink
chore: fix premature maintenance page disableing (#203)
Browse files Browse the repository at this point in the history
* chore: testing branch

* chore: add more sprint statements

* chore: alter maintenance mode

* chore: update base values files

* chore: delete testing script
  • Loading branch information
thegentlemanphysicist authored Oct 23, 2024
1 parent d4681d5 commit a7d5393
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 1 deletion.
10 changes: 9 additions & 1 deletion transition-scripts/helpers/helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,17 @@ upgrade_helm_active() {
esac
shift
done
current_cluster=$(get_current_cluster)

# The golddr maintenance page should remain enabled at all times
if [[ "$current_cluster" == "golddr" ]]; then
maintenance_enabled="true"
else
maintenance_enabled="$maintenance"
fi

upgrade_helm "$namespace" "active" \
--set maintenancePage.enabled="$maintenance" \
--set maintenancePage.enabled="$maintenance_enabled" \
--set maintenancePage.active="$maintenance"

connect_route_to_correct_service "$maintenance" "$namespace"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ resources:
cpu: 1
memory: 2Gi

maintenancePage:
enabled: true

podDisruptionBudget:
enabled: true
minAvailable: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ resources:
cpu: 1
memory: 2Gi

maintenancePage:
enabled: true

patroni:
replicaCount: 3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ resources:
cpu: 1
memory: 2Gi

maintenancePage:
enabled: true

patroni:
replicaCount: 3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ resources:
limits:
cpu: 4

maintenancePage:
enabled: true

persistentLog:
size: 15Gi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ resources:
requests:
cpu: 150m

maintenancePage:
enabled: true

persistentLog:
size: 20Gi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ resources:
limits:
cpu: 4

maintenancePage:
enabled: true

persistentLog:
size: 15Gi

Expand Down

0 comments on commit a7d5393

Please sign in to comment.