Implementation of spec defined in https://github.com/nginx/kubernetes-ingress/issues/7773#issuecomment-2895040002