From b2ca9a305d677c5d1b16ef87ed6930f4ebe3a465 Mon Sep 17 00:00:00 2001 From: Guillaume Berche Date: Thu, 11 Sep 2025 17:25:32 +0200 Subject: [PATCH] Remove permanent KINE_SCHEMA_MIGRATION env var Fix #120 Workaround for upstream kine/galera bug is to transiently turn on this flag one-shot to trigger the schema migration, and then turn it off --- jobs/k3s-server/templates/bin/ctl.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jobs/k3s-server/templates/bin/ctl.erb b/jobs/k3s-server/templates/bin/ctl.erb index f89d6aec0..f957ed77e 100755 --- a/jobs/k3s-server/templates/bin/ctl.erb +++ b/jobs/k3s-server/templates/bin/ctl.erb @@ -159,8 +159,9 @@ case $1 in <% end %> <% end %> -# Turn on db schema migration to prevent id exhaustion, See issue https://github.com/orange-cloudfoundry/k3s-wrapper-boshrelease/issues/106 -export KINE_SCHEMA_MIGRATION=1 +# Manually turn on one-short, the db schema migration to prevent id exhaustion, See issue https://github.com/orange-cloudfoundry/k3s-wrapper-boshrelease/issues/106 +# and https://github.com/k3s-io/kine/issues/517 +#export KINE_SCHEMA_MIGRATION=1 #set tls san for api <% if_p('k3s.master_vip_api') do |flag| %>