Skip to content

Commit

Permalink
Do not panic if the pod details are not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Chauhan committed Nov 10, 2021
1 parent 035df53 commit e27c664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gslb/ingestion/gslb.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ func Initialize() {
// No need to save the Pod metadata, if running AMKO locally.
pod, err := kubeClient.CoreV1().Pods(gslbutils.AVISystem).Get(context.TODO(), os.Getenv("POD_NAME"), metav1.GetOptions{})
if err != nil {
gslbutils.LogAndPanic("error getting AMKO pod details: " + err.Error())
utils.AviLog.Warnf("Error getting AMKO pod details, %s.", err.Error())
}
amkoControlConfig.SaveAMKOPodObjectMeta(pod.DeepCopy())
}
Expand Down

0 comments on commit e27c664

Please sign in to comment.