Skip to content

Commit

Permalink
Add a test for Reaper and Stargate deployed in a single cluster with …
Browse files Browse the repository at this point in the history
…HTTP management proxy enabled on Reaper.
  • Loading branch information
Miles-Garnsey committed Oct 23, 2023
1 parent 38e2649 commit 815e2a7
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/kind_e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
- CreateSingleDatacenterCluster
- CreateStargateAndDatacenter
- CreateSingleReaper
- CreateSingleReaperWStargateAndHTTP
- CreateReaperAndDatacenter
- CreateSingleMedusaJob
- CreateSingleDseMedusaJob
Expand Down
6 changes: 6 additions & 0 deletions test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ func TestOperator(t *testing.T) {
skipK8ssandraClusterCleanup: false,
doCassandraDatacenterCleanup: true,
}))
t.Run("CreateSingleReaperWStargateAndHTTP", e2eTest(ctx, &e2eTestOpts{
testFunc: createSingleReaper,
fixture: framework.NewTestFixture("stargate-reaper-http", controlPlane),
skipK8ssandraClusterCleanup: false,
doCassandraDatacenterCleanup: true,
}))
t.Run("CreateMultiReaper", e2eTest(ctx, &e2eTestOpts{
testFunc: createMultiReaper,
fixture: framework.NewTestFixture("multi-dc-reaper", controlPlane),
Expand Down
58 changes: 58 additions & 0 deletions test/testdata/fixtures/stargate-reaper-http/k8ssandra.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apiVersion: k8ssandra.io/v1alpha1
kind: K8ssandraCluster
metadata:
name: test
spec:
reaper:
httpManagement:
enabled: true
heapSize: 256Mi
autoScheduling:
enabled: false
telemetry:
vector:
enabled: true
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 100m
memory: 512Mi
stargate:
size: 1
heapSize: 384Mi
livenessProbe:
initialDelaySeconds: 60
periodSeconds: 10
failureThreshold: 20
successThreshold: 1
timeoutSeconds: 20
readinessProbe:
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 20
successThreshold: 1
timeoutSeconds: 20
cassandra:
serverVersion: "3.11.14"
jmxInitContainerImage:
repository: library
name: busybox
datacenters:
- metadata:
name: dc1
k8sContext: kind-k8ssandra-0
size: 2
storageConfig:
cassandraDataVolumeClaimSpec:
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
config:
jvmOptions:
heapSize: 384Mi
mgmtAPIHeap: 64Mi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- k8ssandra.yaml

0 comments on commit 815e2a7

Please sign in to comment.