Skip to content

Commit

Permalink
Merge pull request #530 from alexinthesky/rds-conn-details
Browse files Browse the repository at this point in the history
add more fields to connection details
  • Loading branch information
sergenyalcin authored Feb 24, 2023
2 parents 3d73822 + 8f0e15f commit a36dba4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 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,17 @@ 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)
}
if a, ok := attr["port"]; ok {
conn["port"] = []byte(fmt.Sprintf("%v", a))
}

return conn, nil
}
})
Expand Down

0 comments on commit a36dba4

Please sign in to comment.