From cbbca085c631e85500318cb30222e231012611a9 Mon Sep 17 00:00:00 2001 From: Patrick Derks Date: Wed, 8 Jan 2025 09:14:38 +0100 Subject: [PATCH] feat: add database persistent connection value --- Makefile | 5 +++-- api/v1/env.go | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d09a494..05066b9 100644 --- a/Makefile +++ b/Makefile @@ -104,7 +104,7 @@ lint-fix: golangci-lint ## Run golangci-lint linter and perform fixes .PHONY: build build: manifests generate ## Build manager binary. - go build -o bin/manager cmd/manager.go + go build -o manager cmd/manager.go .PHONY: run run: manifests generate zap-pretty ## Run a controller from your host. @@ -114,7 +114,8 @@ run: manifests generate zap-pretty ## Run a controller from your host. # (i.e. docker build --platform linux/arm64). However, you must enable docker buildKit for it. # More info: https://docs.docker.com/develop/develop-images/build_enhancements/ .PHONY: docker-build -docker-build: ## Build docker image with the manager. +docker-build: build ## Build docker image with the manager. + cp LICENSE third-party-licenses.md $(CONTAINER_TOOL) build . -t ${IMG} -f ./build/Dockerfile .PHONY: docker-push diff --git a/api/v1/env.go b/api/v1/env.go index 7d73c4d..e99881a 100644 --- a/api/v1/env.go +++ b/api/v1/env.go @@ -306,6 +306,10 @@ func (s *Store) GetEnv() []corev1.EnvVar { Name: "APP_URL", Value: fmt.Sprintf("https://%s", s.Spec.Network.Host), }, + { + Name: "DATABASE_PERSISTENT_CONNECTION", + Value: "1", + }, } c = append(c, s.getSessionCache()...)