Skip to content

Commit

Permalink
Merge pull request #696 from benagricola/rds-cluster-endpoint
Browse files Browse the repository at this point in the history
Add endpoint to RDS DBCluster connection details
  • Loading branch information
muvaf authored Jun 3, 2021
2 parents f6f778c + 20afe4c commit 1034e22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/rds/dbcluster/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ func (e *custom) postCreate(ctx context.Context, cr *svcapitypes.DBCluster, _ *s
return managed.ExternalCreation{}, err
}
conn := managed.ConnectionDetails{
xpv1.ResourceCredentialsSecretUserKey: []byte(aws.StringValue(cr.Spec.ForProvider.MasterUsername)),
xpv1.ResourceCredentialsSecretEndpointKey: []byte(aws.StringValue(cr.Status.AtProvider.Endpoint)),
xpv1.ResourceCredentialsSecretUserKey: []byte(aws.StringValue(cr.Spec.ForProvider.MasterUsername)),
}
pw, _, err := rds.GetPassword(ctx, e.kube, &cr.Spec.ForProvider.MasterUserPasswordSecretRef, cr.Spec.WriteConnectionSecretToReference)
if err != nil {
Expand Down

0 comments on commit 1034e22

Please sign in to comment.