Skip to content

Instantly share code, notes, and snippets.

@jeesmon
Created May 24, 2022 12:11
Show Gist options
  • Save jeesmon/16fda08b6e09d77c0e061224add2495b to your computer and use it in GitHub Desktop.
Save jeesmon/16fda08b6e09d77c0e061224add2495b to your computer and use it in GitHub Desktop.

From: kube-object-storage/lib-bucket-provisioner#132 (comment)

The best versioning story IMO to avoid the challenges with CRD versioning is the following:

  • Newer versions of the library should be backward compatible.
    • Deprecated properties would be ignored
    • Added properties would have defaults that work for the previous versions of the CRD and the latest library
  • Properties added to the CRD would be ignored by older version of the library

If this is done, there isn't a need to change the CRD version every time a property changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment