mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
The allowRelaxedServiceNameValidation() function currently only checks service names in spec.rules, but it should also check the service name in spec.defaultBackend. When an Ingress has a defaultBackend with a service name that is valid per RFC 1123 but invalid per RFC 1035 (e.g., starting with a digit like "1-default-service"), the function incorrectly returns false. This prevents users from updating such Ingresses even though they were validly created in the past. This commit adds validation for spec.defaultBackend.service.name to maintain backward compatibility for existing Ingresses.