Skip to content

🐛 special-casing metav1.ObjectMeta. #254

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

Merged
merged 1 commit into from
Jul 12, 2019

Conversation

mengqiy
Copy link
Member

@mengqiy mengqiy commented Jul 12, 2019

We now only generate the validation schema for name and generateName
fields.

This PR also alligns with #216

We now only generate the validation schema for name and generateName
fields.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 12, 2019
@mengqiy mengqiy requested a review from droot July 12, 2019 22:55
@DirectXMan12
Copy link
Contributor

Other parts we'll need to cover: x-kubernetes-object and overriding this validation for specific name/generateName constraints.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 12, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: DirectXMan12, mengqiy

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 12, 2019
@k8s-ci-robot k8s-ci-robot merged commit 3b07c26 into kubernetes-sigs:master Jul 12, 2019
@DirectXMan12
Copy link
Contributor

This is actually slightly incorrect -- it's fine for top-level, but embedded object meta is now generated incorrectly -- you actually want the "full" object meta there, or using x-kubernetes-embedded-resource.

@DirectXMan12
Copy link
Contributor

we should revert this before release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants