From 01248051365bf9db1f96ddd9a57beca8ae341f4e Mon Sep 17 00:00:00 2001 From: leandrorichardtoledo <169929015+leandrorichardtoledo@users.noreply.github.com> Date: Fri, 4 Oct 2024 17:56:08 -0300 Subject: [PATCH] Changed to read db identifier prefix from system functions ib_env var (#326) * Changed to read db identifier prefix from system functions ib_env var * dbhostidentifierprefix is same as env --------- Co-authored-by: Drew Wells --- helm/db-controller/values.yaml | 3 --- pkg/basefunctions/basefunctions.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/helm/db-controller/values.yaml b/helm/db-controller/values.yaml index 7d2f9b40..28774f4e 100644 --- a/helm/db-controller/values.yaml +++ b/helm/db-controller/values.yaml @@ -11,9 +11,6 @@ env: local ib: realm: "us" lifecycle: "dev" -db: - identifier: - prefix: "{{ .Values.env }}" dbController: class: default diff --git a/pkg/basefunctions/basefunctions.go b/pkg/basefunctions/basefunctions.go index d9d22217..9e1e2a27 100644 --- a/pkg/basefunctions/basefunctions.go +++ b/pkg/basefunctions/basefunctions.go @@ -257,5 +257,5 @@ func GetDynamicHostWaitTime(viperConfig *viper.Viper) time.Duration { // GetDBIdentifierPrefix returns the prefix for the database identifier. func GetDBIdentifierPrefix(viperConfig *viper.Viper) string { - return viperConfig.GetString("dbIdentifierPrefix") + return viperConfig.GetString("env") }