Skip to content

Commit

Permalink
feat: all-in-one manifests migrations job improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo committed May 31, 2023
1 parent 6b3951d commit b20ddd3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
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

0 comments on commit b20ddd3

Please sign in to comment.