Skip to content

Commit

Permalink
fixed unitest error
Browse files Browse the repository at this point in the history
  • Loading branch information
Gong Yongjie committed Apr 8, 2024
1 parent bd7f2e8 commit a4a5367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ingress/controller/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ func (s *k8sStore) GetIngressClass(ing *networkingv1.Ingress, icConfig *ingressc
return *ing.Spec.IngressClassName, nil
}

return "", errors.Errorf("lack of permission on cluster resource IngressClass: %s", *ing.Spec.IngressClassName)
return "", errors.Errorf("lack of permission on cluster IngressClass: %s, %s", *ing.Spec.IngressClassName, icConfig.AnnotationValue)
}
iclass, err := s.listers.IngressClass.ByKey(*ing.Spec.IngressClassName)
if err != nil {
Expand Down

0 comments on commit a4a5367

Please sign in to comment.