From e9e5b0ddbaf224632417dea89170e6a173d71452 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Fri, 22 May 2026 00:10:17 +0300 Subject: [PATCH 1/2] k8s: update variable name mistake Signed-off-by: Denys Fedoryshchenko --- kube/aks/api.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube/aks/api.yaml b/kube/aks/api.yaml index a812f51b..2b89e63e 100644 --- a/kube/aks/api.yaml +++ b/kube/aks/api.yaml @@ -57,7 +57,7 @@ spec: valueFrom: secretKeyRef: name: kernelci-api-secret - key: unified-secret + key: unified_secret optional: true - name: EMAIL_SENDER valueFrom: From 466a33805c1d34f6964dd09b7d4caf6a00e54fc8 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Thu, 4 Jun 2026 10:09:13 +0300 Subject: [PATCH 2/2] Remove dead code Signed-off-by: Denys Fedoryshchenko --- api/db.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/api/db.py b/api/db.py index df11469d..9172af4c 100644 --- a/api/db.py +++ b/api/db.py @@ -94,14 +94,6 @@ async def del_kv(self, namespace, key): keyname = ":".join([namespace, key]) return await self._redis.delete(keyname) - async def exists_kv(self, namespace, key): - """ - Check if key exists in redis key-value store - Create a keyname by concatenating namespace and key - """ - keyname = ":".join([namespace, key]) - return await self._redis.exists(keyname) - async def create_indexes(self): """Create indexes for models""" for model in self.COLLECTIONS: @@ -122,16 +114,6 @@ async def find_one(self, model, **kwargs): obj = await col.find_one(kwargs) return model(**obj) if obj else None - async def find_one_by_attributes(self, model, attributes): - """Find one object with matching attributes without pagination - - The attributes dictionary provides key/value pairs used to find an - object with matching attributes. - """ - col = self._get_collection(model) - obj = await col.find_one(attributes) - return model(**obj) if obj else None - async def find_by_id(self, model, obj_id): """Find one object with a given id""" col = self._get_collection(model)