Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-sun-star committed Dec 2, 2024
1 parent 3bd3ae8 commit 473b21b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/resource/observer/observer_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ func (m *OBServerManager) UpdateStatus() error {
m.OBServer.Status.PodIp = pod.Status.PodIP
m.OBServer.Status.NodeIp = pod.Status.HostIP
// TODO update from obcluster
m.Logger.V(oceanbaseconst.LogLevelDebug).Info("OBServer pod info", "pod", pod)
m.OBServer.Status.CNI = resourceutils.GetCNIFromAnnotation(pod)
m.Logger.V(oceanbaseconst.LogLevelDebug).Info("Get CNI", "cni", m.OBServer.Status.CNI)

if m.OBServer.Status.ServiceIp == "" {
mode, modeAnnoExist := resourceutils.GetAnnotationField(m.OBServer, oceanbaseconst.AnnotationsMode)
Expand Down

0 comments on commit 473b21b

Please sign in to comment.