Skip to content

Commit

Permalink
Fix up connection details to use proper fields
Browse files Browse the repository at this point in the history
Updates connection details to use the proper fields as made available in
status and connection secrets for the RDS instance.

Signed-off-by: hasheddan <[email protected]>
  • Loading branch information
hasheddan committed Jan 6, 2023
1 parent 5a26666 commit a4d5297
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions apis/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ spec:
- fromFieldPath: "spec.parameters.storage"
toFieldPath: "spec.forProvider.allocatedStorage"
connectionDetails:
- fromConnectionSecretKey: username
- fromConnectionSecretKey: password
- fromConnectionSecretKey: endpoint
- fromConnectionSecretKey: port
- fromFieldPath: "status.atProvider.endpoint"
name: endpoint
- fromFieldPath: "status.atProvider.address"
name: host
- fromFieldPath: "spec.forProvider.username"
name: username
- fromConnectionSecretKey: "attribute.password"
name: password
2 changes: 1 addition & 1 deletion apis/definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
- username
- password
- endpoint
- port
- host
versions:
- name: v1alpha1
served: true
Expand Down

0 comments on commit a4d5297

Please sign in to comment.