You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r.Log.Error(err, "failed to get HTTPRoute by HTTPRoutePolicy targetRef", "namespace", key.Namespace, "name", key.Name)
308
306
continue
309
307
}
310
-
ifkey.SectionName!="" {
308
+
ifref.SectionName!=nil {
311
309
varmatchRuleNamebool
312
310
for_, rule:=rangehttpRoute.Spec.Rules {
313
-
ifrule.Name!=nil&&*rule.Name==key.SectionName {
311
+
ifrule.Name!=nil&&*rule.Name==*ref.SectionName {
314
312
matchRuleName=true
315
313
break
316
314
}
317
315
}
318
316
if!matchRuleName {
319
-
r.Log.Error(errors.Errorf("failed to get HTTPRoute rule by HTTPRoutePolicy targetRef"), "namespace", key.Namespace, "name", key.Name, "sectionName", key.SectionName)
317
+
r.Log.Error(errors.Errorf("failed to get HTTPRoute rule by HTTPRoutePolicy targetRef"), "namespace", key.Namespace, "name", key.Name, "sectionName", *ref.SectionName)
0 commit comments