-
Notifications
You must be signed in to change notification settings - Fork 480
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
[kong] rework migration job configuration #102
Conversation
* Replace runMigrations with settings for each migration job under a migrations block. * Add support for job annotations, with default annotations to disable some service mesh sidecars. * Add documentation instructing users to disable initial migrations after installing. * Add documentation for managing clusters split across multiple releases.
* Update NOTES.txt warnings to reference URLs in the upgrade guide rather than explaining the issue in place. * Add warning for runMigrations.
Apply various updates based on feedback in #102 Notably, this now fully automates creation of init-migrations during install only, and deletes it after. It removes user control over that job, as there should no longer be any scenario where it's needed. This should be squashed into 857215e with an amended message mentioning automatic init-migrations handling before merger.
20f853f is mostly doc changes requested above. It has one major functionality change: the init job handling is now fully automated and avoids the conflict issue. It should be squashed into 857215e with an update to the original message. Edit: I tried to make I've left the default in there since it'd otherwise rely on |
Fix another newline chomp issue in NOTES.txt. This continues the work in 00fd543 and fixes a similar issue when the proxy is not a LoadBalancer. There do not appear to be any options for this other than placing the "else if" and its first line of text on the same line, so it looks a bit odd in the template itself.
# Set runMigrations to run Kong migrations | ||
runMigrations: true | ||
# Enable/disable migration jobs, and set annotations for them | ||
migrations: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Do we need to clarify with a doc line saying this is only valid for Kong installations backed by DB?
The reason I ask is because it is not totally obvious from just reading this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really--the job templates already disable themselves if DB-less is in use, and no changes are required to this config for it.
* Correct a typo in split release instructions. * Remove superfluous configuration from example.
* Replace runMigrations with settings for upgrade migrations jobs under a migrations block. * Handle deleting init-migrations jobs automatically. * Add warning for deprecated runMigrations setting. * Add support for job annotations, with default annotations to disable some service mesh sidecars. * Add documentation for managing clusters split across multiple releases. * Update NOTES.txt warnings to reference URLs in the upgrade guide rather than explaining the issue in place. * Fix a newline chomp issue in NOTES.txt.
Hi @hbagdi @rainest annotations: |
Could you elaborate? That's by design, as there's no reason for Installs are handled using a different command ( |
Hi, thanks for your quick response.
waiting for db I guess when add new plugin migrations based on already bootstrapped , we have to execute "migrations up"? |
@chenguang-Steve yeah--that's an atypical strategy we wouldn't normally expect to support: we'd normally expect users to have any custom plugins present when running Is there any reason you perform a full delete and re-install for this? I'd normally expect a You could probably perform a full delete and re-install when adding the additional plugin if you also reset your database or delete its PVC after deletion (note: don't do this if you aren't using the ingress controller or decK to manage configuration--it will destroy all configuration added manually through the admin API). However, it normally shouldn't be necessary to do so--an upgrade should suffice for most use cases. If there's a case where it doesn't, I'd be curious to know--it may be something we can handle better with improvements elsewhere. |
What this PR does / why we need it:
migrations
section in values.yaml.runMigrations
into per-migration toggles undermigrations
.This addresses several different issues:
Which issue this PR fixes
Fixes #19
Fixes #43
Special notes for your reviewer:
This supersedes #101
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
next
branch and targetsnext
, notmaster
[kong]
)