-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial support for reaper sidecar mode * debug deployment issues * using the PodIP for mgmt api calls * calculate liveness probe init delay based on cluster size This commit also updates the role binding for helm chart * create service to expose reaper ui * fix test failure * bring back GetPodFromHost function * add reaper field to CRD * add checks to see if reaper is enabled and add unit tests for schema job * add test for buildInitReaperSchemaJob * add unit tests for reaper service * bump mgmt api image version Switch to used mgmt api image v0.1.4 to get the fix for k8ssandra/management-api-for-apache-cassandra#18 which was blocking me. Without the fix, I could not deploy a CassandraDatacenter and then enable Reaper. Due to the changes in k8ssandra/management-api-for-apache-cassandra@1a225f9#diff-3aaf645b2133cebc86740ab63150b507 I also had to add the IGNORE_DEFAULTS=true env var to the cassandra container in order for seeds to get configured properly. * add integration test and delete service when reaper is disabled The integration test does the following: * stand up a cluster * enable reaper * verify cluster reaches ready state * verify that pods include reaper containers * disable reaper * verify cluster reaches ready state * verify pods do not include reaper containers The CheckReaperService function has been refactored to delete the service if reaper is disabled. * switch default image back to official reaper image * fix unit test failures * updates from PR review * fix bad merge after rebase and add integration test * removed env var that is no longer needed * add nil checks since the Reaper field is now a pointer and fix missing back tick
- Loading branch information
Showing
12 changed files
with
579 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,3 +63,9 @@ rules: | |
- '*' | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- batch | ||
resources: | ||
- '*' | ||
verbs: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,4 +64,10 @@ rules: | |
- '*' | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- batch | ||
resources: | ||
- '*' | ||
verbs: | ||
- '*' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
operator/pkg/apis/cassandra/v1beta1/zz_generated.deepcopy.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.