From 225ffe53101dc83e2fb75df5ae6944adbb6986a1 Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Thu, 26 Jan 2023 19:51:42 +0100 Subject: [PATCH] addition of logs to debug Signed-off-by: Florent Poinsard --- pkg/operator/vttablet/pod.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/operator/vttablet/pod.go b/pkg/operator/vttablet/pod.go index 47fafebd5..35d414211 100644 --- a/pkg/operator/vttablet/pod.go +++ b/pkg/operator/vttablet/pod.go @@ -27,6 +27,7 @@ import ( "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/utils/pointer" "sigs.k8s.io/controller-runtime/pkg/client" + logf "sigs.k8s.io/controller-runtime/pkg/log" topodatapb "vitess.io/vitess/go/vt/proto/topodata" "vitess.io/vitess/go/vt/topo/topoproto" @@ -373,8 +374,8 @@ func UpdatePod(obj *corev1.Pod, spec *Spec) { } func detectMySQLVersionUpgradeDowngrade(obj *corev1.Pod, spec *Spec) *corev1.Lifecycle { - // log := logf.Log.WithName("manager") - + log := logf.Log.WithName("manager") + log.Info("========== LIFECYCLE") mysqldLifecycle := &corev1.Lifecycle{ PreStop: &corev1.LifecycleHandler{ Exec: &corev1.ExecAction{