Skip to content

Commit

Permalink
add more fields to connection details
Browse files Browse the repository at this point in the history
  • Loading branch information
alexinthesky committed Feb 16, 2023
1 parent cb005cf commit 4fcaf19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/rds/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"github.com/upbound/upjet/pkg/config"

"github.com/upbound/provider-aws/config/common"

"fmt"
)

// Configure adds configurations for rds group.
Expand Down Expand Up @@ -85,9 +87,16 @@ func Configure(p *config.Provider) {
if a, ok := attr["endpoint"].(string); ok {
conn["endpoint"] = []byte(a)
}
if a, ok := attr["address"].(string); ok {
conn["address"] = []byte(a)
conn["host"] = []byte(a)
}
if a, ok := attr["username"].(string); ok {
conn["username"] = []byte(a)
}

conn["port"] = []byte(fmt.Sprintf("%v", attr["port"]))

return conn, nil
}
})
Expand Down

0 comments on commit 4fcaf19

Please sign in to comment.