-
Notifications
You must be signed in to change notification settings - Fork 78
Bug 1891898: Set min and max values on Webhook Container Port #70
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
Bug 1891898: Set min and max values on Webhook Container Port #70
Conversation
OLM logs when a CSV with an invalid containerPort is created:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good.
28edde2
to
0e214c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
0e214c9
to
652cd68
Compare
/lgtm |
Problem: Operator Authors can create CSVs that define Webhooks with containerPorts set outside the range of 0-65535, which prevents the ValidatingWebhookConfiguration or MutatingWebhookConfiguration from being created due to failed validation. Solution: Update the CSV's CRD Validation to include the proper min and max values for webhookDescription ContainerPort field.
652cd68
to
3b25e5d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Problem: Operator Authors can create CSVs that define Webhooks with
containerPorts set outside the range of 0-65535, which prevents the
ValidatingWebhookConfiguration or MutatingWebhookConfiguration from
being created due to failed validation.
Solution: Update the CSV's CRD Validation to include the proper min and
max values for webhookDescription ContainerPort field.
Example OLM Failure Log: