From 4fcaf19f2d344922d50d40cbcbf75e892185cad7 Mon Sep 17 00:00:00 2001 From: alexinthesky Date: Thu, 16 Feb 2023 14:20:59 +0100 Subject: [PATCH] add more fields to connection details --- config/rds/config.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/rds/config.go b/config/rds/config.go index 88df6742b5..5be2157116 100644 --- a/config/rds/config.go +++ b/config/rds/config.go @@ -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. @@ -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 } })