mesosphere / kudo-cassandra-operator

KUDO Cassandra Operator
https://kudo.dev
Apache License 2.0
10 stars 3 forks source link

Switching to kuttl for MWT #138

Closed kensipe closed 4 years ago

kensipe commented 4 years ago

Switch to using KUTTL for MWT

I've tested against a Konvoy cluster with the following changes to the setup/01-cassandra-install/02-install-cassandra.yaml file

  parameters:
    NODE_COUNT: "3"
    NODE_MEM_MIB: "4096"
    NODE_MEM_LIMIT_MIB: "4096"
    NODE_CPU_MC: "1000"
    NODE_CPU_LIMIT_MC: "1000"
    NODE_DISK_SIZE_GIB: "20"

I would be inclined to restructure the folders and README if we can get agreement on this is the way we want to move forward. (I would likely remove or rename mwt folder and merge the 2 README files)

I did discover some weakness in kuttl with this... namely around namespace management... the delete properties for a TestStep do not honor the namespace defined... they only delete what is in the generated test namespace. Which has worked well for tests but isn't great when the focus is setup and verify. Created https://github.com/kudobuilder/kuttl/issues/124 to track.

Signed-off-by: Ken Sipe kensipe@gmail.com

kensipe commented 4 years ago

after fixing kudo... might want to look at for 02-install-cassandra.yaml

apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
  - command: kubectl kudo install --instance cassandra cassandra --namespace cassandrra  -P params.yaml    
kensipe commented 4 years ago

updated to cassandra 1.0.0 + added test configs