Skip to content

Commit f09b55e

Browse files
committed
Merge pull request #288 from mboersma/call-it-healthz
ref(healthchecks): rename endpoint to /healthz
2 parents 9a78cbc + aea58eb commit f09b55e

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

manifests/deis-workflow-rc.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ spec:
1919
image: quay.io/deisci/workflow:v2-beta
2020
readinessProbe:
2121
httpGet:
22-
path: /health-check
22+
path: /healthz
2323
port: 8000
2424
initialDelaySeconds: 30
2525
timeoutSeconds: 1
2626
livenessProbe:
2727
httpGet:
28-
path: /health-check
28+
path: /healthz
2929
port: 8000
3030
initialDelaySeconds: 30
3131
timeoutSeconds: 1
@@ -65,4 +65,3 @@ spec:
6565
- name: builder-key-auth
6666
secret:
6767
secretName: builder-key-auth
68-

rootfs/api/tests/test_healthcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class HealthCheckTest(TestCase):
66

77
def setUp(self):
8-
self.url = '/health-check'
8+
self.url = '/healthz'
99

1010
def test_healthcheck(self):
1111
# GET and HEAD (no auth required)

rootfs/deis/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
from api.views import HealthCheckView
1111

1212
urlpatterns = [
13-
url(r'^health-check$', HealthCheckView.as_view()),
13+
url(r'^healthz$', HealthCheckView.as_view()),
1414
url(r'^v2/', include('api.urls')),
1515
]

0 commit comments

Comments
 (0)