-
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.
Termination grace time and prestop drain (#269)
* default DefaultTerminationGracePeriodSeconds to 120 * adding test for prestop * upgraded the sleep test * comment fixes * Extracted function BuildMgmtApiWgetAction * Set prestop hook * WIP - introduced secure and insecure methods for making wget mgmt api actions * WIP - default to insecure mgmt api if nothing is specified * WIP - insecure node drain in prestop works * WIP - insecure node drain in prestop works * Test now looks for successful drain * WIP - working on secure node drain call * WIP - updating test * rename * WIP - fixing tests * disabled drain check for now * introduced new oss test file * WIP - moving to oss * removed test-jks * always remove test-jks
- Loading branch information
1 parent
08ecb09
commit 3686fd1
Showing
10 changed files
with
330 additions
and
46 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
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
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
36 changes: 36 additions & 0 deletions
36
tests/testdata/default-single-rack-single-node-prestop-dc.yaml
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apiVersion: cassandra.datastax.com/v1beta1 | ||
kind: CassandraDatacenter | ||
metadata: | ||
name: dc2 | ||
spec: | ||
clusterName: cluster2 | ||
serverType: dse | ||
serverVersion: "6.8.4" | ||
managementApiAuth: | ||
insecure: {} | ||
size: 1 | ||
podTemplateSpec: | ||
spec: | ||
containers: | ||
- name: "cassandra" | ||
lifecycle: | ||
preStop: | ||
exec: | ||
command: ["/bin/sleep", "6000s"] | ||
storageConfig: | ||
cassandraDataVolumeClaimSpec: | ||
storageClassName: server-storage | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
racks: | ||
- name: r1 | ||
config: | ||
jvm-server-options: | ||
initial_heap_size: "800m" | ||
max_heap_size: "800m" | ||
cassandra-yaml: | ||
file_cache_size_in_mb: 100 | ||
memtable_space_in_mb: 100 |
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.