From cfb786ab2d242a511eb58a10c1b6432c4947afbe Mon Sep 17 00:00:00 2001 From: Florian Haas Date: Thu, 24 Aug 2023 10:36:19 +0200 Subject: [PATCH] fix: Apply mysqld character set fix to Kubernetes deployment This is a follow-up fix to #819, where the corresponding change was added to the mysqld invocation in the "tutor local" (that is, docker-compose) deployment method, but omitted from its "tutor k8s" equivalent. --- changelog.d/20230824_104119_fghaas_utf8mb3_k8s.md | 1 + tutor/templates/k8s/deployments.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20230824_104119_fghaas_utf8mb3_k8s.md diff --git a/changelog.d/20230824_104119_fghaas_utf8mb3_k8s.md b/changelog.d/20230824_104119_fghaas_utf8mb3_k8s.md new file mode 100644 index 0000000000..b732065391 --- /dev/null +++ b/changelog.d/20230824_104119_fghaas_utf8mb3_k8s.md @@ -0,0 +1 @@ +- 💥[Bugfix] Apply "fix mysql crash after upgrade to Palm" from 16.1.0 to `tutor k8s` deployments, as well. Users previously running `tutor k8s` with `RUN_MYSQL: true`, with any version between 16.0.0 and 16.1.0 including, might have to fix their data manually. For users running `tutor local`, this change has no effect, as the underlying issue was already fixed in 16.1.0. For users running `tutor k8s` with `RUN_MYSQL: false`, this change is also a no-op. (by @fghaas) diff --git a/tutor/templates/k8s/deployments.yml b/tutor/templates/k8s/deployments.yml index ee017246ed..ff833ad1ca 100644 --- a/tutor/templates/k8s/deployments.yml +++ b/tutor/templates/k8s/deployments.yml @@ -392,7 +392,7 @@ spec: containers: - name: mysql image: {{ DOCKER_IMAGE_MYSQL }} - args: ["mysqld", "--character-set-server=utf8", "--collation-server=utf8_general_ci"] + args: ["mysqld", "--character-set-server=utf8mb3", "--collation-server=utf8mb3_general_ci"] env: - name: MYSQL_ROOT_PASSWORD value: "{{ MYSQL_ROOT_PASSWORD }}"