jetstack / navigator

Managed Database-as-a-Service (DBaaS) on Kubernetes
Apache License 2.0
271 stars 31 forks source link

Add datacenter and rack info to cassandra nodepool spec #255

Closed kragniz closed 6 years ago

kragniz commented 6 years ago

This adds three fields to cassandra's nodepool spec:

nodeSelector is passed to the statefulset spec, allowing users to specify where the nodepool is scheduled.

rack and datacenter are both passed to cassandra's GossipingPropertyFileSnitch, which distributes this information around the rest of the cluster.

Fixes #247

Add datacenter and rack info to cassandra nodepool spec
kragniz commented 6 years ago

In the latest patches, I've added validation of the new fields (as well as some additional validation) and set the default rack value to the name of the nodepool

kragniz commented 6 years ago

/retest

jetstack-bot commented 6 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wallrj

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files: - ~~[OWNERS](https://github.com/jetstack/navigator/blob/master/OWNERS)~~ [wallrj] You can indicate your approval by writing `/approve` in a comment You can cancel your approval by writing `/approve cancel` in a comment
jetstack-ci-bot commented 6 years ago

/test all [submit-queue is verifying that this PR is safe to merge]

jetstack-ci-bot commented 6 years ago

Automatic merge from submit-queue.