Skip to content

Commit

Permalink
Merge pull request #122 from Yolean/events-kube-error-reporting
Browse files Browse the repository at this point in the history
Improve robustness of events-kube test
  • Loading branch information
solsson authored Feb 3, 2018
2 parents ea1acda + 31a561a commit e7a8e05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions events-kube/events-kube-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
curl
-f
-s
-S
--cacert /run/secrets/kubernetes.io/serviceaccount/ca.crt
--header "Authorization: Bearer $(cat /run/secrets/kubernetes.io/serviceaccount/token)"
https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_SERVICE_PORT/api/v1/watch/events
Expand Down
10 changes: 3 additions & 7 deletions events-kube/test/events-topic.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Note that this test is scaled to zero
# because it will only stay healthy when there are cluster events, at least 1 per periodSeconds
---
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -35,7 +37,7 @@ metadata:
name: events-topic
namespace: test-kafka
spec:
replicas: 1
replicas: 0
strategy:
type: Recreate
selector:
Expand All @@ -47,12 +49,6 @@ spec:
labels:
test-target: events-topic
test-type: readiness
# for example:
# readonly - can be used in production
# isolated - read/write but in a manner that does not affect other services
# load - unsuitable for production because it uses significant resources
# chaos - unsuitable for production because it injects failure modes
#test-use:
spec:
containers:
- name: testcase
Expand Down

0 comments on commit e7a8e05

Please sign in to comment.