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

Reduce dependencies of apis/CassandraDatacenter to allow newer Kubernetes #8

Merged
merged 2 commits into from Apr 27, 2021

Conversation

burmanm
Copy link
Contributor

@burmanm burmanm commented Apr 7, 2021

Moved from datastax/cass-operator#389

When using cass-operator's CassandraDatacenter as a dependency in another project, the current implementation prevents the use of newer versions of Kubernetes dependencies (conflicts with certain removed APIs).

These dependencies come from the use of utils package as well as images. Images pulls old controller-runtime which wants old non-existant Kube APIs and the utils picks up also persistentvolume dependencies.

I think the end approach should be that apis does not call other packages inside cass-operator to ensure that it's self contained and can be more easily used in other projects as dependency. However, with these modifications I was able to use CassandraDatacenter as a dependency with Kubernetes versions up to 1.20.4 (newest released), so it solves the problem. serverconfig does not use external packages, but there was a note of code-gen requirement to keep it in the external package - which probably requires updating the controller-runtime to operator-sdk 1.x series - and that's a lot bigger project.

…ewer versions of Kubernetes. This removes the CassandraDatacenter dependency of controller-runtime as well as deprecated features / storageAPIs through indirection
@jsanda jsanda merged commit 1e56aba into k8ssandra:master Apr 27, 2021
@jdonenine jdonenine added this to the Release 1.7.0 milestone May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants