-
Notifications
You must be signed in to change notification settings - Fork 425
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 support for AllowDangerousTypes crd flag (enables float support) #449
✨ Add support for AllowDangerousTypes crd flag (enables float support) #449
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. |
Welcome @matthchr! |
Note(s) for maintainers:
|
I signed it |
/hold thanks for the contribution. This is neat, and I like that it explicitly marks particular types as "this is a known problematic type". I think it fits nicely with #443 as well, but I think we'll want to think about cases where we use one vs the other -- this feels like "types that we don't use" vs 443, which is "types that we shouldn't use", but I'm not sure how clear the distinction is. Thoughts? |
/kind feature |
@DirectXMan12 - it seems like there's a continuum here:
I do think the two ideas actually play nicely together because if you wanted to say demote a type from category 2 to 3, you can do that and then hide it behind the *I don't actually know what all types are "not recommended" and presumably the recommended practices are relatively static so I wouldn't imagine much release-to-release change in these once they're solidified. Thoughts? |
@DirectXMan12 - Are there changes that you'd like to see for this PR (and/or its interactions with #443)? I'm wondering what the process is to get from where it is today to a state where it could be merged. |
It's largely mergable now, just wanted to make sure we had that conversation and that there was a general plan. The one thing I'd do is maybe copy what you wrote in that comment (it's well-written :-) ) into a comment in the source code, and maybe add a TODO to make a more formal mechanism for putting "type patterns" in those categories. |
then we can get this merged |
- This can be used to enable float32/float64 (go type) -> number (json schema) for CRDs. It is off by default because floats are not recommended in CRDs generally.
c73e854
to
ed1c4c9
Compare
@DirectXMan12 thanks for the guidance. I've put the text I wrote as a comment on the Let me know if that looks good or if you'd like any modifications to it - thanks for your time! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12, matthchr 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 |
@DirectXMan12 thanks for the approval. Based on the PR approval process it looks like the |
ah, yeah, I forgot to /hold cancel |
that should do it. |
hi, how can I use the field |
Specify it on the cmdline, something like: |
This can be used to enable
float32
/float64
(go type) ->number
(json schema) for CRDs. It is off by default because floats are not recommended in CRDs.Discussion about this originated in #245 (which is now closed). @DirectXMan12 had suggested using a flag by this name to allow conditional supporting of floats. There's also at least one other issue asking about this (indirectly) at #93.