Skip to content

Commit

Permalink
change namespace where secret is read from (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvertonCalgarotto authored Sep 25, 2024
1 parent d12a9c2 commit 547a6c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/databaseclaim/gcpprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,15 @@ func (r *DatabaseClaimReconciler) createSecretWithConnInfo(ctx context.Context,
return err
}

serviceNS, err := r.getServiceNamespace()
if err != nil {
return err
}

var secret = &corev1.Secret{}
err = r.Client.Get(ctx, client.ObjectKey{
Name: dbHostIdentifier,
Namespace: dbclaim.Namespace,
Namespace: serviceNS,
}, secret)
if err != nil {
return err
Expand Down

0 comments on commit 547a6c4

Please sign in to comment.