Skip to content

Commit 45a4fe3

Browse files
authored
use reader.get to get EDB configmap (#2593)
Signed-off-by: Allen Li <liyuchen223@gmail.com>
1 parent 154bfff commit 45a4fe3

File tree

1 file changed

+1
-1
lines changed
  • internal/controller/bootstrap

1 file changed

+1
-1
lines changed

internal/controller/bootstrap/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2662,7 +2662,7 @@ func (b *Bootstrap) getPostgresImageConfigMap(ctx context.Context) (*corev1.Conf
26622662
configMap := &corev1.ConfigMap{}
26632663
configMapName := constant.PostgreSQLImageConfigMap
26642664

2665-
if err := b.Client.Get(ctx, types.NamespacedName{
2665+
if err := b.Reader.Get(ctx, types.NamespacedName{
26662666
Name: configMapName,
26672667
Namespace: b.CSData.OperatorNs,
26682668
}, configMap); err != nil && errors.IsNotFound(err) {

0 commit comments

Comments
 (0)