Skip to content

Commit e27c664

Browse files
author
Shubham Chauhan
committed
Do not panic if the pod details are not found
1 parent 035df53 commit e27c664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gslb/ingestion/gslb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ func Initialize() {
677677
// No need to save the Pod metadata, if running AMKO locally.
678678
pod, err := kubeClient.CoreV1().Pods(gslbutils.AVISystem).Get(context.TODO(), os.Getenv("POD_NAME"), metav1.GetOptions{})
679679
if err != nil {
680-
gslbutils.LogAndPanic("error getting AMKO pod details: " + err.Error())
680+
utils.AviLog.Warnf("Error getting AMKO pod details, %s.", err.Error())
681681
}
682682
amkoControlConfig.SaveAMKOPodObjectMeta(pod.DeepCopy())
683683
}

0 commit comments

Comments
 (0)