Skip to content

Commit

Permalink
Update secret name
Browse files Browse the repository at this point in the history
Signed-off-by: pritamdas99 <pritam@appscode.com>
  • Loading branch information
pritamdas99 committed Nov 19, 2024
1 parent dcf8b0e commit dd3f338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/kubedb/v1/elasticsearch_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ func (e *Elasticsearch) setDefaultInternalUsersAndRoleMappings(esVersion *catalo
userSpec.SecretName = e.Spec.AuthSecret.Name
} else {
if userSpec.SecretName == "" {
userSpec.SecretName = e.DefaultUserCredSecretName(username)
userSpec.SecretName = e.GetAuthSecretName()
}
e.Spec.AuthSecret = &SecretReference{
LocalObjectReference: core.LocalObjectReference{
Expand Down

0 comments on commit dd3f338

Please sign in to comment.