Skip to content

Commit

Permalink
Bugfix: port may not be returned
Browse files Browse the repository at this point in the history
  • Loading branch information
digiserg committed Jan 20, 2024
1 parent f850d11 commit 2c12476
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/vals-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ kubeVersion: ">= 1.19.0-0"
type: application

# Chart version
version: 0.7.8
version: 0.7.9-beta1

# Latest container tag
appVersion: v0.7.8
appVersion: v0.7.9-beta1

maintainers:
- email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion charts/vals-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vals-operator

![Version: 0.7.8](https://img.shields.io/badge/Version-0.7.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.7.8](https://img.shields.io/badge/AppVersion-v0.7.8-informational?style=flat-square)
![Version: 0.7.9-beta1](https://img.shields.io/badge/Version-0.7.9-beta1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.7.9-beta1](https://img.shields.io/badge/AppVersion-v0.7.9-beta1-informational?style=flat-square)

This helm chart installs the Digitalis Vals Operator to manage and sync secrets from supported backends into Kubernetes.
## About Vals-Operator
Expand Down
6 changes: 4 additions & 2 deletions vault/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,10 @@ func GetDbCredentials(role string, mount string) (VaultDbSecret, error) {

hosts, _ = conn["hosts"].(string)
connectionURL, _ = conn["connection_url"].(string)
port = conn["port"].(json.Number).String()

_, ok = conn["port"]
if ok {
port = conn["port"].(json.Number).String()
}
if connectionURL != "" {
connectionURL = strings.Replace(connectionURL, "{{username}}", s.Data["username"].(string), 1)
connectionURL = strings.Replace(connectionURL, "{{password}}", s.Data["password"].(string), 1)
Expand Down

0 comments on commit 2c12476

Please sign in to comment.