-
Notifications
You must be signed in to change notification settings - Fork 819
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
ObjectMeta should use additionalProperties #1949
ObjectMeta should use additionalProperties #1949
Conversation
Build Failed 😱 Build Id: 052f2d47-49b5-4e6c-a761-48c8ebc79ed9 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Rather than using `x-kubernetes-preserve-unknown-fields` which allows both keys and values of any type, we should use `additionalProperties` which only allows a specified type (in this case "string") for keys and values. Better validation!
3dea765
to
07aa310
Compare
Build Succeeded 👏 Build Id: 49af6f31-d26a-4863-84c4-6a1731dd294c The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markmandel, roberthbailey 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 |
New changes are detected. LGTM label has been removed. |
Build Succeeded 👏 Build Id: 58ec637a-27ae-4d0f-8dc1-8a13009fc7e2 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
What type of PR is this?
/kind cleanup
What this PR does / Why we need it:
Rather than using
x-kubernetes-preserve-unknown-fields
which allows both keys and values of any type, we should useadditionalProperties
which only allows a specified type (in this case "string") for keys and values.Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
Better validation!
Also matches ObjectMeta's actual OpenAPI v2 spec.