-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[installer] Add disableMigration
experimental config
#9793
Conversation
a4ef522
to
bc9692a
Compare
@@ -18,6 +19,10 @@ import ( | |||
var initScriptFiles embed.FS | |||
|
|||
func configmap(ctx *common.RenderContext) ([]runtime.Object, error) { | |||
if disableMigration := common.IsDatabaseMigrationEnabled(ctx); disableMigration { |
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.
👍
@@ -20,6 +20,10 @@ import ( | |||
var initScriptFiles embed.FS | |||
|
|||
func configmap(ctx *common.RenderContext) ([]runtime.Object, error) { | |||
if disableMigration := common.IsDatabaseMigrationEnabled(ctx); disableMigration { |
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.
👍
@@ -19,6 +20,10 @@ import ( | |||
) | |||
|
|||
func job(ctx *common.RenderContext) ([]runtime.Object, error) { | |||
if disableMigration := common.IsDatabaseMigrationEnabled(ctx); disableMigration { |
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.
👍
@@ -15,6 +15,10 @@ import ( | |||
) | |||
|
|||
func job(ctx *common.RenderContext) ([]runtime.Object, error) { | |||
if disableMigration := common.IsDatabaseMigrationEnabled(ctx); disableMigration { |
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.
👍
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.
LGTM
Use it to skip rendering: * the `migration' job. * the `dbinit-session` job. * the `dbinit-scripts` configmaps.
Test that the objects are/are not rendered when the `disableMigration` config flag is set.
bc9692a
to
7e82584
Compare
/werft run with-clean-slate-deployment=true 👍 started the job as gitpod-build-af-installer-disable-migration.5 |
Description
One of the Webapp team's epics for Q2 is to use the Gitpod installer to deploy to Gitpod SaaS. In order to do that we will need to add additional configuration to the installer to make the output suitable for a SaaS deployment as opposed to a self-hosted deployment.
This PR adds an extra
disableDbMigration
config flag underexperimental.webapp
. When set, the flag causes the installer not to render:dbinit-session
jobmigrations
jobdb-init-scripts
configmapsWe do this because for Gitpod SaaS, Werft runs the migrations as part of the release process.
Related Issue(s)
Part of #9097
How to test
Create an installer config file containing this
experimental
section:Get a
versions.yaml
for use with the installer:Then invoke the installer as:
The resources mentioned above will not be part of the rendered output.
Release Notes
Documentation
None.