Skip to content

Commit ee0ffc9

Browse files
committed
fix logger
1 parent 62a7728 commit ee0ffc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/apis/pxc/v1/pxc_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222
"k8s.io/apimachinery/pkg/types"
2323
"k8s.io/apimachinery/pkg/util/intstr"
24-
ctrl "sigs.k8s.io/controller-runtime"
2524
"sigs.k8s.io/controller-runtime/pkg/client"
2625
"sigs.k8s.io/controller-runtime/pkg/log"
2726

@@ -1726,7 +1725,7 @@ func AddSidecarPVCs(log logr.Logger, existing, sidecarPVCs []corev1.PersistentVo
17261725
// ExtraPVCVolumes generates Kubernetes volumes from ExtraPVC configurations.
17271726
// Each ExtraPVC references an existing PersistentVolumeClaim by name.
17281727
func ExtraPVCVolumes(ctx context.Context, extraPVCs []ExtraPVC) []corev1.Volume {
1729-
logger := ctrl.LoggerFrom(ctx)
1728+
logger := log.FromContext(ctx)
17301729

17311730
if len(extraPVCs) == 0 {
17321731
return nil

0 commit comments

Comments
 (0)