Skip to content

Commit

Permalink
Changed to read db identifier prefix from system functions ib_env var (
Browse files Browse the repository at this point in the history
…#326)

* Changed to read db identifier prefix from system functions ib_env var

* dbhostidentifierprefix is same as env

---------

Co-authored-by: Drew Wells <dwells@infoblox.com>
  • Loading branch information
leandrorichardtoledo and drewwells authored Oct 4, 2024
1 parent 4ab1980 commit 0124805
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions helm/db-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ env: local
ib:
realm: "us"
lifecycle: "dev"
db:
identifier:
prefix: "{{ .Values.env }}"
dbController:
class: default

Expand Down
2 changes: 1 addition & 1 deletion pkg/basefunctions/basefunctions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 0124805

Please sign in to comment.