fix indent issue

This commit is contained in:
Gong Yongjie 2024-04-08 00:49:09 -04:00
parent c97e62aa01
commit a436a323a9

View file

@ -1054,7 +1054,7 @@ func (s *k8sStore) GetIngressClass(ing *networkingv1.Ingress, icConfig *ingressc
if icConfig.AnnotationValue == *ing.Spec.IngressClassName { if icConfig.AnnotationValue == *ing.Spec.IngressClassName {
return *ing.Spec.IngressClassName, nil return *ing.Spec.IngressClassName, nil
} else { } else {
return "", errors.Errorf("Cannot validate ing.Spec.IngressClassName: %s due to lack of permission on cluter resource IngressClass", *ing.Spec.IngressClassName) return "", errors.Errorf("lack of permission on cluter resource IngressClass: %s", *ing.Spec.IngressClassName)
} }
} }
iclass, err := s.listers.IngressClass.ByKey(*ing.Spec.IngressClassName) iclass, err := s.listers.IngressClass.ByKey(*ing.Spec.IngressClassName)