remove probe function again but update dependencies

This commit is contained in:
Tobias Trabelsi 2024-08-04 23:40:53 +02:00
parent ffbf466416
commit 096bf6b5f6
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
3 changed files with 15 additions and 12 deletions

View File

@ -4,12 +4,12 @@ LABEL org.opencontainers.image.source=https://github.com/Lerentis/bitwarden-crd-
LABEL org.opencontainers.image.description="Kubernetes Operator to create k8s secrets from bitwarden" LABEL org.opencontainers.image.description="Kubernetes Operator to create k8s secrets from bitwarden"
LABEL org.opencontainers.image.licenses=MIT LABEL org.opencontainers.image.licenses=MIT
ARG PYTHON_VERSION=3.11.9-r0 ARG PYTHON_VERSION=3.12.3-r1
ARG PIP_VERSION=23.3.1-r0 ARG PIP_VERSION=24.0-r2
ARG GCOMPAT_VERSION=1.1.0-r4 ARG GCOMPAT_VERSION=1.1.0-r4
ARG LIBCRYPTO_VERSION=3.1.4-r5 ARG LIBCRYPTO_VERSION=3.3.1-r3
ARG BW_VERSION=2023.7.0 ARG BW_VERSION=2024.7.2
ARG NODE_VERSION=20.12.1-r0 ARG NODE_VERSION=20.15.1-r0
COPY requirements.txt /requirements.txt COPY requirements.txt /requirements.txt

View File

@ -109,10 +109,18 @@ annotations:
artifacthub.io/operator: "true" artifacthub.io/operator: "true"
artifacthub.io/containsSecurityUpdates: "false" artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: changed
description: "Dedicated probe handler to reduce logging noise"
- kind: changed - kind: changed
description: "Update Alpine to 3.20.2" description: "Update Alpine to 3.20.2"
- kind: changed
description: "Update Python to 3.12.3-r1"
- kind: changed
description: "Update Pip to 24.0-r2"
- kind: changed
description: "Update NodeJS to 20.15.1-r0"
- kind: changed
description: "Update libcrypto3 to 3.3.1-r3"
- kind: changed
description: "Update BitwardenCLI to 2024.7.2"
artifacthub.io/images: | artifacthub.io/images: |
- name: bitwarden-crd-operator - name: bitwarden-crd-operator
image: ghcr.io/lerentis/bitwarden-crd-operator:0.13.0 image: ghcr.io/lerentis/bitwarden-crd-operator:0.13.0

View File

@ -4,7 +4,6 @@ import kopf
import schedule import schedule
import time import time
import threading import threading
import datetime
from utils.utils import command_wrapper, unlock_bw, sync_bw from utils.utils import command_wrapper, unlock_bw, sync_bw
@ -21,10 +20,6 @@ def bitwarden_signin(logger, **kwargs):
command_wrapper(logger, "login --apikey") command_wrapper(logger, "login --apikey")
unlock_bw(logger) unlock_bw(logger)
@kopf.on.probe(id='now')
def get_current_timestamp(**kwargs):
return datetime.datetime.now(datetime.timezone.utc).isoformat()
def run_continuously(interval=30): def run_continuously(interval=30):
cease_continuous_run = threading.Event() cease_continuous_run = threading.Event()