-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrectly nesting routes under virtualhost is considered valid #2527
Comments
Hey @erwbgy I think what happened is since the yaml wasn't nested properly, it didn't get parsed correctly when Contour got the object, so in a sense, those invalid fields were just missing from the spec. But what should have ended up is that you had a root proxy with no routes and I think that should be at least invalid (which I thought was already a test case). Let me look to see about that one. |
Hopefully once we can move to CRD v1, this problem will disappear, as incorrect YAML will be rejected by the apiserver. Agreed that a proxy with no routes should be invalid. |
Blocked by #2678 |
Updates the Contour CustomResourceDefinition YAML files to contain v1 resources instead of v1beta1. Closes projectcontour#2678 Closes projectcontour#1723 Closes projectcontour#1978 Closes projectcontour#2903 Closes projectcontour#2527 Signed-off-by: Steve Kriss <krisss@vmware.com>
Updates the Contour CustomResourceDefinition YAML files to contain v1 resources instead of v1beta1. Closes projectcontour#2678 Closes projectcontour#1723 Closes projectcontour#1978 Closes projectcontour#2903 Closes projectcontour#2527 Signed-off-by: Steve Kriss <krisss@vmware.com>
Updates the Contour CustomResourceDefinition YAML files to contain v1 resources instead of v1beta1. Closes projectcontour#2678 Closes projectcontour#1723 Closes projectcontour#1978 Closes projectcontour#2903 Closes projectcontour#2527 Signed-off-by: Steve Kriss <krisss@vmware.com>
Updates the Contour CustomResourceDefinition YAML files to contain v1 resources instead of v1beta1. Closes projectcontour#2678 Closes projectcontour#1723 Closes projectcontour#1978 Closes projectcontour#2903 Closes projectcontour#2527 Signed-off-by: Steve Kriss <krisss@vmware.com>
Updates the Contour CustomResourceDefinition YAML files to contain v1 resources instead of v1beta1. Closes projectcontour#2678 Closes projectcontour#1723 Closes projectcontour#1978 Closes projectcontour#2903 Closes projectcontour#2527 Signed-off-by: Steve Kriss <krisss@vmware.com>
Updates the Contour CustomResourceDefinition YAML files to contain v1 resources instead of v1beta1. Closes projectcontour#2678 Closes projectcontour#1723 Closes projectcontour#1978 Closes projectcontour#2903 Closes projectcontour#2527 Signed-off-by: Steve Kriss <krisss@vmware.com>
examples: generate v1 CustomResourceDefinitions Updates the Contour CustomResourceDefinition YAML files to contain v1 resources instead of v1beta1 with preserveUnknownFields set to false. Also adds a check on `contour serve` for non-upgraded CRDs, and logs a warning if found. Closes #2678 Closes #1723 Closes #1978 Closes #2903 Closes #2527 Signed-off-by: Steve Kriss <krisss@vmware.com>
What steps did you take and what happened:
If routes is incorrectly nested under virtualhost the HTTPProxy object is still considered valid, but all calls just return 404 Not Found:
What did you expect to happen:
I expected that the HTTPProxy status would be invalid because routes is not allowed under virtualhost.
Anything else you would like to add:
With the indentation fixed the call works fine:
Environment:
/etc/os-release
): RHEL 8.1The text was updated successfully, but these errors were encountered: