-
Notifications
You must be signed in to change notification settings - Fork 582
Add omitempty to dnsmanagementpolicy #1270
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
Add omitempty to dnsmanagementpolicy #1270
Conversation
|
Hello @thejasn! Some important instructions when contributing to openshift/api: For merging purposes, this repository follows the no-Feature-Freeze process which means that in addition to the standard
OR
Who should apply these qe/docs/px labels?
|
|
/lgtm This was discussed on slack, the lack of omitempty causes the default to be set by openapi which then won't pass validation. With omitempty, validation passes and then the default is set |
|
@JoelSpeed: GitHub didn't allow me to assign the following users: approval, for. Note that only openshift members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
| "dnsManagementPolicy": { | ||
| "description": "dnsManagementPolicy indicates if the lifecycle of the wildcard DNS record associated with the load balancer service will be managed by the ingress operator. It defaults to Managed. Valid values are: Managed and Unmanaged.", | ||
| "type": "string", | ||
| "default": "" |
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.
So the problem is that this value here should be Managed?
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.
Yes, we need the defaults to be accepted in both OpenAPI and controller-tools, except they use different tags, so right now the default is "" which is causing validation issues. You must have omitempty to have a non-empty default here as well
JoelSpeed
left a comment
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.
@thejasn Please apply the two suggestions and regenerate and I think this is good
1d05d34 to
a95768e
Compare
|
/retest |
|
I've been experimenting with this and as far as I can tell this makes things works as they stand today with client-side and server-side validation We want to have the correct default in the openapi.json, and to achieve this, we need to add There's an open question about /lgtm |
61d4d70 to
4e8fd0f
Compare
|
/hold |
9a85f86 to
44704b6
Compare
Make dnsManagementPolicy required Signed-off-by: Thejas N <[email protected]>
44704b6 to
f3501b4
Compare
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, JoelSpeed, thejasn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |
|
/label docs-approved |
|
/label qe-approved |
|
/label px-approved |
|
@thejasn: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Signed-off-by: Thejas N [email protected]