diff options
Diffstat (limited to 'test/rack-awareness.yml')
-rw-r--r-- | test/rack-awareness.yml | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/test/rack-awareness.yml b/test/rack-awareness.yml deleted file mode 100644 index 2a80a54..0000000 --- a/test/rack-awareness.yml +++ /dev/null @@ -1,77 +0,0 @@ ---- -kind: ConfigMap -metadata: - name: test-rack-awareness - # To test using the service account we need to be in the kafka namespace for now - namespace: kafka -apiVersion: v1 -data: - - setup.sh: |- - touch /tmp/testlog - - tail -f /tmp/testlog - - continue.sh: |- - exit 0 - - run.sh: |- - exec >> /tmp/testlog - exec 2>&1 - - exit 0 - ---- -apiVersion: apps/v1beta1 -kind: Deployment -metadata: - name: test-rack-awareness - # To test using the service account we need to be in the kafka namespace for now - namespace: kafka -spec: - replicas: 1 - template: - metadata: - labels: - test-target: kafka - test-type: readiness - spec: - serviceAccountName: kafka - containers: - - name: testcase - image: solsson/kafka:0.11.0.0@sha256:b27560de08d30ebf96d12e74f80afcaca503ad4ca3103e63b1fd43a2e4c976ce - env: - - name: MY_NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - - name: MY_POD_SERVICE_ACCOUNT - valueFrom: - fieldRef: - fieldPath: spec.serviceAccountName - # Test set up - command: - - /bin/bash - - -e - - /test/setup.sh - # Test run, again and again - readinessProbe: - exec: - command: - - /bin/bash - - -e - - /test/run.sh - # Test quit on nonzero exit - livenessProbe: - exec: - command: - - /bin/bash - - -e - - /test/continue.sh - volumeMounts: - - name: config - mountPath: /test - volumes: - - name: config - configMap: - name: test-rack-awareness |