-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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 OpenAPI scheme methods for metav1.Duration #69803
Add OpenAPI scheme methods for metav1.Duration #69803
Conversation
/assign @mbohlool |
/assign @sttts |
/kind bug |
/retest |
@rfranzke @mbohlool @stts @idealhack Absence of OpenAPI scheme methods for metav1.Duration also causing issues with generating OpenAPI code for CRDs using metav1 API.
To workaround this issue I use forked kubernetes/apimachinery with applied patch from this PR, but it's quite a dirty hack. What should we do to merge this PR? |
@inish777 We have to reach out to sig-api-machinery to find some reviewers. @kubernetes/sig-api-machinery-pr-reviews |
change OpenAPISchemaFormat to return "", lgtm otherwise |
cb408a3
to
712cbc5
Compare
Agreed, thank you! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, rfranzke 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 |
/test pull-kubernetes-integration |
/test pull-kubernetes-e2e-kops-aws |
1 similar comment
/test pull-kubernetes-e2e-kops-aws |
/retest Review the full test history for this PR. Silence the bot with an |
2 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
@idealhack @rfranzke @liggitt thank you! |
What this PR does / why we need it: The
metav1.Duration
type does not have the OpenAPI methods. Using it in any resource type will fail the validation kubectl performs against the openapi specification:Similar to the
metav1.Time
methods this PR will add the same functionality to themetav1.Duration
type.Release note: