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

feat: all-in-one manifests migrations job improvement #4116

Merged
merged 1 commit into from
May 31, 2023
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Adding a new version? You'll need three changes:
- Gateway's `AttachedRoutes` fields get updated with the number of routes referencing
and using each listener.
[#4052](https://github.com/Kong/kubernetes-ingress-controller/pull/4052)
- `all-in-one-postgres.yaml` and `all-in-one-postgres-enterprise.yaml` manifests'
migrations job now works properly when running against an already bootstrapped
database, allowing upgrades from one version of Kong Gateway to another without
tearing down the database.
[#4116](https://github.com/Kong/kubernetes-ingress-controller/pull/4116)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion config/variants/postgres/migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ spec:
value: postgres
- name: KONG_PG_PORT
value: "5432"
command: [ "/bin/bash", "-c", "kong migrations bootstrap" ]
command: [ "/bin/bash", "-c", "kong migrations bootstrap && kong migrations up && kong migrations finish" ]
restartPolicy: OnFailure
2 changes: 1 addition & 1 deletion deploy/single/all-in-one-postgres-enterprise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ spec:
- command:
- /bin/bash
- -c
- kong migrations bootstrap
- kong migrations bootstrap && kong migrations up && kong migrations finish
env:
- name: KONG_LICENSE_DATA
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/single/all-in-one-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ spec:
- command:
- /bin/bash
- -c
- kong migrations bootstrap
- kong migrations bootstrap && kong migrations up && kong migrations finish
env:
- name: KONG_PG_PASSWORD
value: kong
Expand Down
Loading