From 6ba3cfd742a8de9eb6d3fa799dd17ddcc7f25aee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 19:48:28 +0000 Subject: [PATCH 1/5] build(deps): bump logfmter from 0.0.6 to 0.0.7 in /src Bumps [logfmter](https://github.com/jteppinette/python-logfmter) from 0.0.6 to 0.0.7. - [Release notes](https://github.com/jteppinette/python-logfmter/releases) - [Changelog](https://github.com/jteppinette/python-logfmter/blob/main/HISTORY.md) - [Commits](https://github.com/jteppinette/python-logfmter/compare/v0.0.6...v0.0.7) --- updated-dependencies: - dependency-name: logfmter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- src/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requirements.txt b/src/requirements.txt index e73a0c4b..1bf21ce9 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,4 +1,4 @@ kubernetes==28.1.0 requests==2.31.0 python-json-logger==2.0.7 -logfmter==0.0.6 \ No newline at end of file +logfmter==0.0.7 \ No newline at end of file From 132b89059ea61de66798a07059e96a3bfa563566 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 7 Feb 2024 19:54:01 +0000 Subject: [PATCH 2/5] build(deps): bump python from 3.12.1-alpine3.18 to 3.13.0a3-alpine3.18 Bumps python from 3.12.1-alpine3.18 to 3.13.0a3-alpine3.18. --- updated-dependencies: - dependency-name: python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 43a93701..fe0c718e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12.1-alpine3.18 as base +FROM python:3.13.0a3-alpine3.18 as base FROM base as builder WORKDIR /app From 009c863f1f215432b780c9e5c83d3c435902c454 Mon Sep 17 00:00:00 2001 From: Christian Geie Date: Thu, 8 Feb 2024 19:17:34 +0100 Subject: [PATCH 3/5] #patch From ed1518dd721f6e8b5a6c8f380c0880bb4062496c Mon Sep 17 00:00:00 2001 From: Anton Chub Date: Tue, 13 Feb 2024 11:38:00 +0100 Subject: [PATCH 4/5] #minor Remove unnecessary sleep after each watch cycle --- src/resources.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/resources.py b/src/resources.py index b3dfe426..ca3533f1 100755 --- a/src/resources.py +++ b/src/resources.py @@ -365,8 +365,6 @@ def _watch_resource_iterator(label, label_value, target_folder, request_url, req def _watch_resource_loop(mode, *args): while True: try: - # Always wait to slow down the loop in case of exceptions - sleep(int(os.getenv("ERROR_THROTTLE_SLEEP", 5))) if mode == "SLEEP": list_resources(*args) sleep(int(os.getenv("SLEEP_TIME", 60))) @@ -379,11 +377,14 @@ def _watch_resource_loop(mode, *args): raise except ProtocolError as e: logger.error(f"ProtocolError when calling kubernetes: {e}\n") + sleep(int(os.getenv("ERROR_THROTTLE_SLEEP", 5))) except MaxRetryError as e: logger.error(f"MaxRetryError when calling kubernetes: {e}\n") + sleep(int(os.getenv("ERROR_THROTTLE_SLEEP", 5))) except Exception as e: logger.error(f"Received unknown exception: {e}\n") traceback.print_exc() + sleep(int(os.getenv("ERROR_THROTTLE_SLEEP", 5))) def watch_for_changes(mode, label, label_value, target_folder, request_url, request_method, request_payload, From a2d13592185fe07f7ea5a00865e7fe8c9b627d84 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 19:07:13 +0000 Subject: [PATCH 5/5] build(deps): bump python from 3.13.0a3-alpine3.18 to 3.13.0a4-alpine3.18 Bumps python from 3.13.0a3-alpine3.18 to 3.13.0a4-alpine3.18. --- updated-dependencies: - dependency-name: python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fe0c718e..2d3d8023 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.13.0a3-alpine3.18 as base +FROM python:3.13.0a4-alpine3.18 as base FROM base as builder WORKDIR /app