Skip to content

Reconcile Multiple Major Versions of Custom Resource #3991

Closed Answered by camilamacedo86
beatrausch asked this question in Support
Discussion options

You must be logged in to vote

Unfortunately, Kubernetes does not support labeling both versions as the storage version simultaneously. In Kubernetes API versioning, only one version of a resource can be designated as the storage version at any given time. This version is used to store all the data for that resource in etcd.

A common approach is to use webhooks to convert one version to another. If this approach does not work, you might need to maintain separate CustomResourceDefinitions (CRDs) for each major version. This way, each version can operate independently without the need for conversion. That means you will need to have Kind A and Kind B either and a controller to manage each one of them.

I hope that helps y…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by beatrausch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants