From 9cdb4b9a49506d21056f9b26d84b978948108252 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Wed, 2 Aug 2017 12:55:10 +0200 Subject: Removing the test as I can't see how to assert rack awareness --- test/rack-awareness.yml | 77 ------------------------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 test/rack-awareness.yml 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 -- cgit v1.2.3