Skip to content

Commit 7f19c48

Browse files
author
Matthew Fisher
authored
fix(scheduler): make app un-routable (#974)
1 parent dcd11fd commit 7f19c48

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rootfs/scheduler/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ def _update_application_service(self, namespace, name, app_type, port, routable=
267267
# Update service information
268268
if routable:
269269
service['metadata']['labels']['router.deis.io/routable'] = 'true'
270+
else:
271+
# delete the annotation
272+
service['metadata']['labels'].pop('router.deis.io/routable', None)
270273

271274
# Set app type if there is not one available
272275
if 'type' not in service['spec']['selector']:

0 commit comments

Comments
 (0)