Skip to content
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

CRD versioning design proposal [No Conversion] #2054

Merged
merged 1 commit into from
Apr 23, 2018

Conversation

mbohlool
Copy link
Contributor

@mbohlool mbohlool commented Apr 19, 2018

CRD versioning proposal is discussed in detail here:

https://docs.google.com/document/d/1Ucf7JwyHpy7QlgHIN2Rst_q6yT0eeN9euzUV6kte6aY/edit

This is the main no conversion part of the design agreed on by the community/API machinery SIG.

@sttts @deads2k @lavalamp

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/design Categorizes issue or PR as related to design. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. labels Apr 19, 2018
@deads2k
Copy link
Contributor

deads2k commented Apr 20, 2018

I think this matches what we talked about before.

@liggitt chance for final comments. I'll probably tag on Monday.

@mbohlool there may be a little bikeshedding on Name versus Version in the substruct, but in looks well scoped.

@deads2k
Copy link
Contributor

deads2k commented Apr 20, 2018

@liggitt chance for final comments. I'll probably tag on Monday.

@sttts you too.

@mbohlool
Copy link
Contributor Author

mbohlool commented Apr 20, 2018

there may be a little bikeshedding on Name versus Version in the substruct, but in looks well scoped.

Version.Version vs Version.Name? I vote for Version.Name :)

@liggitt
Copy link
Member

liggitt commented Apr 23, 2018

@liggitt chance for final comments. I'll probably tag on Monday.

no other comments from me

@deads2k
Copy link
Contributor

deads2k commented Apr 23, 2018

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k

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 Apr 23, 2018
@k8s-ci-robot k8s-ci-robot merged commit b279047 into kubernetes:master Apr 23, 2018
* `Spec.Version` field exists in `Spec.Versions` field.
* The version defined in `Spec.Version` field should point to a `Served` Version in `Spec.Versions` list except when we do not serve any version (i.e. all versions in `Spec.Versions` field are disabled by `Served` set to `False`). This is for backward compatibility. An old controller expect that version to be served but only the whole CRD is served. CRD Registration controller should unregister a CRD with no serving version.
* None of the `Status.StoredVersion` can be removed from `Spec.Versions` list.
* Only one of the versions in `spec.Versions` can flag as `Storage` version.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly one...

@sttts
Copy link
Contributor

sttts commented Apr 24, 2018

Lgtm.

MadhavJivrajani pushed a commit to MadhavJivrajani/community that referenced this pull request Nov 30, 2021
CRD versioning design proposal [No Conversion]
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. kind/design Categorizes issue or PR as related to design. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants