Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Remove deprecated reservation support
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Feb 26, 2018
1 parent 3cb8754 commit 65cf8ff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions autoscaler/kube.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ def __init__(self, pod):
self.status = pod.obj['status']['phase']
self.uid = metadata['uid']
self.selectors = pod.obj['spec'].get('nodeSelector', {})
# TODO: Remove this, after everyone has migrated off reservations
if 'openai.org/reservation-id' in self.selectors:
del self.selectors['openai.org/reservation-id']
self.labels = metadata.get('labels', {})
self.annotations = metadata.get('annotations', {})
self.owner = self.labels.get('owner', None)
Expand Down

0 comments on commit 65cf8ff

Please sign in to comment.