diff --git a/library/common/Chart.yaml b/library/common/Chart.yaml index 38eecc05..689733ac 100644 --- a/library/common/Chart.yaml +++ b/library/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 12.12.0 +version: 12.12.1 diff --git a/library/common/templates/lib/dependencies/_clickhouseInjector.tpl b/library/common/templates/lib/dependencies/_clickhouseInjector.tpl index 43d4753d..6a4c0b08 100644 --- a/library/common/templates/lib/dependencies/_clickhouseInjector.tpl +++ b/library/common/templates/lib/dependencies/_clickhouseInjector.tpl @@ -5,8 +5,7 @@ {{- if .Values.clickhouse.enabled -}} {{/* Initialize variables */}} - {{- $basename := include "tc.v1.common.lib.chart.names.fullname" $ -}} - {{- $fetchname := printf "%s-clickhousecreds" $basename -}} + {{- $fetchname := printf "%s-clickhousecreds" .Release.Name -}} {{- $dbprevious := lookup "v1" "Secret" .Release.Namespace $fetchname -}} {{- $dbpreviousold := lookup "v1" "Secret" .Release.Namespace "clickhousecreds" -}} {{- $dbPass := randAlphaNum 50 -}} diff --git a/library/common/templates/lib/dependencies/_mariadbInjector.tpl b/library/common/templates/lib/dependencies/_mariadbInjector.tpl index 6fdc1d55..59565f75 100644 --- a/library/common/templates/lib/dependencies/_mariadbInjector.tpl +++ b/library/common/templates/lib/dependencies/_mariadbInjector.tpl @@ -5,8 +5,7 @@ This template generates a random password and ensures it persists across updates {{- if .Values.mariadb.enabled -}} {{/* Initialize variables */}} - {{- $basename := include "tc.v1.common.lib.chart.names.fullname" $ -}} - {{- $fetchname := printf "%s-mariadbcreds" $basename -}} + {{- $fetchname := printf "%s-mariadbcreds" .Release.Name -}} {{- $dbprevious := lookup "v1" "Secret" .Release.Namespace $fetchname -}} {{- $dbpreviousold := lookup "v1" "Secret" .Release.Namespace "mariadbcreds" -}} {{- $dbPass := randAlphaNum 50 -}} diff --git a/library/common/templates/lib/dependencies/_mongodbInjector.tpl b/library/common/templates/lib/dependencies/_mongodbInjector.tpl index fd06d0dc..12f0ff67 100644 --- a/library/common/templates/lib/dependencies/_mongodbInjector.tpl +++ b/library/common/templates/lib/dependencies/_mongodbInjector.tpl @@ -5,8 +5,7 @@ This template generates a random password and ensures it persists across updates {{- if .Values.mongodb.enabled -}} {{/* Initialize variables */}} - {{- $basename := include "tc.v1.common.lib.chart.names.fullname" $ -}} - {{- $fetchname := printf "%s-mongodbcreds" $basename -}} + {{- $fetchname := printf "%s-mongodbcreds" .Release.Name -}} {{- $dbprevious := lookup "v1" "Secret" .Release.Namespace $fetchname -}} {{- $dbpreviousold := lookup "v1" "Secret" .Release.Namespace "mongodbcreds" -}} {{- $dbPass := randAlphaNum 50 -}} diff --git a/library/common/templates/lib/dependencies/_redisInjector.tpl b/library/common/templates/lib/dependencies/_redisInjector.tpl index 14ff2bc0..68601649 100644 --- a/library/common/templates/lib/dependencies/_redisInjector.tpl +++ b/library/common/templates/lib/dependencies/_redisInjector.tpl @@ -5,8 +5,7 @@ This template generates a random password and ensures it persists across updates {{- if .Values.redis.enabled -}} {{/* Initialize variables */}} - {{- $basename := include "tc.v1.common.lib.chart.names.fullname" $ -}} - {{- $fetchname := printf "%s-rediscreds" $basename -}} + {{- $fetchname := printf "%s-rediscreds" .Release.Name -}} {{- $dbprevious := lookup "v1" "Secret" .Release.Namespace $fetchname -}} {{- $dbPass := randAlphaNum 50 -}} {{- $dbIndex := .Values.redis.redisDatabase | default "0" -}} diff --git a/library/common/templates/lib/dependencies/_solrInjector.tpl b/library/common/templates/lib/dependencies/_solrInjector.tpl index 5df96e00..32d33f21 100644 --- a/library/common/templates/lib/dependencies/_solrInjector.tpl +++ b/library/common/templates/lib/dependencies/_solrInjector.tpl @@ -5,8 +5,7 @@ This template generates a random password and ensures it persists across updates {{- if .Values.solr.enabled -}} {{/* Initialize variables */}} - {{- $basename := include "tc.v1.common.lib.chart.names.fullname" $ -}} - {{- $fetchname := printf "%s-solrcreds" $basename -}} + {{- $fetchname := printf "%s-solrcreds" .Release.Name -}} {{- $solrprevious := lookup "v1" "Secret" .Release.Namespace $fetchname -}} {{- $solrpreviousold := lookup "v1" "Secret" .Release.Namespace "solrcreds" -}} {{- $solrPass := randAlphaNum 50 -}}