Currently, when the last rule is removed, we attempt to patch the ingress to have an empty list of rules. Kubernetes does not allow an ingress with no rules, so this fails, the ingress is not updated, and the last path remains. I suppose the right thing to do is to delete the ingress if it has no rules, which makes me kind of sad.
Currently, when the last rule is removed, we attempt to patch the ingress to have an empty list of rules. Kubernetes does not allow an ingress with no rules, so this fails, the ingress is not updated, and the last path remains. I suppose the right thing to do is to delete the ingress if it has no rules, which makes me kind of sad.