Skip to content

Commit

Permalink
blockaws cron hangs due to bug in K8s Python client
Browse files Browse the repository at this point in the history
  • Loading branch information
bookshelfdave committed Apr 25, 2018
1 parent 25a22da commit 7a317c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k8s/tools/block-aws/block-aws-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
spec:
containers:
- name: block-aws-cron
image: quay.io/mozmar/blockaws:1f888cb
image: quay.io/mozmar/blockaws:d514111
env:
- name: DMS_URL
valueFrom:
Expand Down
6 changes: 5 additions & 1 deletion k8s/tools/block-aws/block-aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"""

import os
import sys

from kubernetes import client, config
import requests
Expand Down Expand Up @@ -62,4 +63,7 @@
r = requests.get(os.environ['DMS_URL'])
print(r.status_code)
else:
print('DMS_URL not found, not notifying DMS')
print('DMS_URL not found, not notifying DMS')

# https://github.com/kubernetes-client/python/issues/411
sys.exit()

0 comments on commit 7a317c6

Please sign in to comment.