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

Multigroup structure #187

Merged
merged 2 commits into from
Oct 18, 2021
Merged

Multigroup structure #187

merged 2 commits into from
Oct 18, 2021

Conversation

burmanm
Copy link
Contributor

@burmanm burmanm commented Oct 6, 2021

What this PR does:
Modifies the structure of apis and controllers to a multigroup one (kubebuilder v3).

Which issue(s) this PR fixes:
Fixes #93

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

@burmanm burmanm marked this pull request as ready for review October 7, 2021 18:44
@burmanm burmanm requested a review from a team as a code owner October 7, 2021 18:44
path: github.com/k8ssandra/k8ssandra-operator/api/v1alpha1
version: v1alpha1
path: github.com/k8ssandra/k8ssandra-operator/apis/config/v1beta1
version: v1beta1
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you change the version? I assume because of the path changes. I ask though because I think it is understood that alpha APIs can have breaking changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This namespace (config.k8ssandra.io/v1beta1) is used by cass-operator. It shouldn't be different in k8ssandra-operator.

PROJECT Outdated
@@ -13,29 +14,31 @@ resources:
controller: true
group: k8ssandra.io
kind: K8ssandraCluster
path: github.com/k8ssandra/k8ssandra-operator/api/v1alpha1
path: github.com/k8ssandra/k8ssandra-operator/apis/core/v1alpha1
Copy link
Contributor

Choose a reason for hiding this comment

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

Kind of a minor nit. What qualifies K8ssandraCluster as core and others as not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Naming. I thought apis/cluster would have been somewhat confusing given we have so many clusters already.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree that cluster would be confusing. I think k8ssandracluster is too long. Not sure about just k8ssandra.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

apis/k8ssandra/ ? Sounds fine as well. It's apis/cassandra/ in cass-operator.

Copy link
Contributor

Choose a reason for hiding this comment

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

Then let's go with apis/k8ssandra.

@jsanda
Copy link
Contributor

jsanda commented Oct 14, 2021

@burmanm I had merged another PR ahead of this which caused conflicts. Let me know when you rebase and resolve the conflicts and we'll get this merged.

@burmanm
Copy link
Contributor Author

burmanm commented Oct 14, 2021

Done.

@jsanda
Copy link
Contributor

jsanda commented Oct 18, 2021

@burmanm I submitted a PR against your branch with a fix for the api server timeouts.

burmanm and others added 2 commits October 18, 2021 20:10
Move controllers to multigroup struct, refactor some testing

Fix create-clientconfig

Rename apis/core to apis/k8ssandra
@jsanda jsanda merged commit 0416308 into k8ssandra:main Oct 18, 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.

K8SSAND-838 ⁃ Multi-group structure
2 participants