Skip to content

Instantly share code, notes, and snippets.

@cardil
Last active September 10, 2021 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cardil/8c11cce4e2c1e84c40064e962bc0a1e7 to your computer and use it in GitHub Desktop.
Save cardil/8c11cce4e2c1e84c40064e962bc0a1e7 to your computer and use it in GitHub Desktop.
This is a prototype of a Serverless Operator chaos test, suited directly to check for SRVKE-927, (looking for failures different then SRVKE-911)
#!/usr/bin/env bash
set -Eexuo pipefail
if ! [ -d serverless-operator ]; then
git clone https://github.com/cardil/serverless-operator.git --branch srvke-927
fi
cd serverless-operator
env SYSTEM_NAMESPACE=knative-serving \
EVENTING_UPGRADE_TESTS_CONFIGMOUNTPOINT=/.config/wathola \
SERVERLESS_CHAOSE2E_LEADERELECTION_NAMESPACES=knative-eventing \
go test -v \
-tags chaos \
./test/chaos/... \
--imagetemplate='quay.io/openshift-knative/{{.Name}}:v0.23'
@cardil
Copy link
Author

cardil commented Sep 9, 2021

To run it, install Serverless, AMQ Streams, create default Kafka cluster, create KnativeKafka CR. Then run it continually, until a failure occurs by (best to have tmux session):

while ./serverless-chaostest.sh; do :; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment