Skip to content

Commit 39091a4

Browse files
committed
Also set the owner to the respective user
1 parent 06fd943 commit 39091a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/comp-functions/functions/vshnpostgres/user_management.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ func addDatabase(comp common.Composite, svc *runtime.ServiceRuntime, name string
271271
},
272272
},
273273
Spec: pgv1alpha1.DatabaseSpec{
274-
ForProvider: pgv1alpha1.DatabaseParameters{},
274+
ForProvider: pgv1alpha1.DatabaseParameters{
275+
Owner: &name,
276+
},
275277
ResourceSpec: xpv1.ResourceSpec{
276278
ProviderConfigReference: &xpv1.Reference{
277279
Name: comp.GetName(),

0 commit comments

Comments
 (0)