From 984a1bd6c8204bdd3d032a56043523d99dae812f Mon Sep 17 00:00:00 2001 From: Florian Hines Date: Wed, 17 Jul 2024 16:56:54 +0000 Subject: [PATCH] migration to app.channel_id column --- go.mod | 2 +- go.sum | 2 ++ migrations/build-ttl.sh | 3 ++- migrations/tables/app.yaml | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 0d46fa6b16..f949a70e56 100644 --- a/go.mod +++ b/go.mod @@ -50,7 +50,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 github.com/replicatedhq/embedded-cluster-kinds v1.4.5 - github.com/replicatedhq/kotskinds v0.0.0-20240621084729-1eb1e3eac6f2 + github.com/replicatedhq/kotskinds v0.0.0-20240717145110-8eb39e8b3a41 github.com/replicatedhq/kurlkinds v1.5.0 github.com/replicatedhq/troubleshoot v0.95.1 github.com/replicatedhq/yaml/v3 v3.0.0-beta5-replicatedhq diff --git a/go.sum b/go.sum index 5c227fe18b..8e711a4072 100644 --- a/go.sum +++ b/go.sum @@ -1317,6 +1317,8 @@ github.com/replicatedhq/embedded-cluster-kinds v1.4.5 h1:OZygNoSL4yFF+r+0l2slnq/ github.com/replicatedhq/embedded-cluster-kinds v1.4.5/go.mod h1:AwopUvvGcaWO4mn9DkbPj5RnLuOy756CNLrcaAlmjMo= github.com/replicatedhq/kotskinds v0.0.0-20240621084729-1eb1e3eac6f2 h1:xL4u2RHhMaGDgz7Lol5MhVYLnWahV3sCJZbfebpPao0= github.com/replicatedhq/kotskinds v0.0.0-20240621084729-1eb1e3eac6f2/go.mod h1:QjhIUu3+OmHZ09u09j3FCoTt8F3BYtQglS+OLmftu9I= +github.com/replicatedhq/kotskinds v0.0.0-20240717145110-8eb39e8b3a41 h1:xvvRq5EZ7wBlsrDZIAUpJ318cEMzTpt8zVAO2atFQlM= +github.com/replicatedhq/kotskinds v0.0.0-20240717145110-8eb39e8b3a41/go.mod h1:QjhIUu3+OmHZ09u09j3FCoTt8F3BYtQglS+OLmftu9I= github.com/replicatedhq/kurlkinds v1.5.0 h1:zZ0PKNeh4kXvSzVGkn62DKTo314GxhXg1TSB3azURMc= github.com/replicatedhq/kurlkinds v1.5.0/go.mod h1:rUpBMdC81IhmJNCWMU/uRsMETv9P0xFoMvdSP/TAr5A= github.com/replicatedhq/termui/v3 v3.1.1-0.20200811145416-f40076d26851 h1:eRlNDHxGfVkPCRXbA4BfQJvt5DHjFiTtWy3R/t4djyY= diff --git a/migrations/build-ttl.sh b/migrations/build-ttl.sh index 8f9daea0f5..bd80613f27 100755 --- a/migrations/build-ttl.sh +++ b/migrations/build-ttl.sh @@ -3,8 +3,9 @@ set -e CURRENT_USER=${GITHUB_USER:-$(id -u -n)} IMAGE=ttl.sh/${CURRENT_USER}/kotsadm-migrations:24h +SCHEMAHERO_TAG=${SCHEMAHERO_TAG:-0.17.9} -docker build -f deploy/Dockerfile -t ${IMAGE} . +docker build --build-arg SCHEMAHERO_TAG=${SCHEMAHERO_TAG} -f deploy/Dockerfile -t ${IMAGE} . docker push ${IMAGE} GREEN='\033[0;32m' diff --git a/migrations/tables/app.yaml b/migrations/tables/app.yaml index af9aec57eb..ccdc0b51ba 100644 --- a/migrations/tables/app.yaml +++ b/migrations/tables/app.yaml @@ -85,3 +85,5 @@ spec: default: 0 constraints: notNull: true + - name: channel_id + type: text