From b84322cf77f7a90ad8224f60e492da8f6661a712 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sun, 8 Oct 2023 12:40:23 +0100 Subject: [PATCH] Remove duplicate properties, fix curvenote token config --- config/curvenote.yaml | 8 ++++---- .../templates/aws-ecr-registry-cleaner/deployment.yaml | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/curvenote.yaml b/config/curvenote.yaml index feb042ca6d..698182bbf6 100644 --- a/config/curvenote.yaml +++ b/config/curvenote.yaml @@ -87,8 +87,7 @@ binderhub: except httpclient.HTTPError as e: if e.code == 404: return None - else: - raise + raise async def get_image_manifest(self, image, tag): """ @@ -138,8 +137,9 @@ binderhub: try: token_json = await self._request(token_url, method="POST", body="") except httpclient.HTTPError as e: - if e.code != 404: - raise + if e.code == 404: + return None + raise self.log.debug(f"Token: {*token_json.keys(),}") token = dict( (k, v) diff --git a/mybinder/templates/aws-ecr-registry-cleaner/deployment.yaml b/mybinder/templates/aws-ecr-registry-cleaner/deployment.yaml index ed440f8f52..7a4ffda39b 100644 --- a/mybinder/templates/aws-ecr-registry-cleaner/deployment.yaml +++ b/mybinder/templates/aws-ecr-registry-cleaner/deployment.yaml @@ -18,7 +18,6 @@ spec: app: aws-ecr-registry-cleaner component: aws-ecr-registry-cleaner release: {{ .Release.Name }} - replicas: 1 template: metadata: labels: