kuberneteskubernetes-custom-resources

Should I create a new version when I trying to add a field in CRD?


If I want to add a field in a CRD(without change any exist field), Should I do it by create a new version?

If I should create a new version, then what's the disadvantages of directly modifying the original version?


Solution

  • As explained in the blog written by Dinesh Parvathaneni, you can validate the points as mentioned below:

    CRDs are similar to K8s built-in types and the expectation for operator developers is to follow the same guidelines when it comes to their versioning.

    Hope the above information is useful to you.