Skip to content

Commit

Permalink
updates and dedicated probe handler function
Browse files Browse the repository at this point in the history
  • Loading branch information
Lerentis committed Aug 4, 2024
1 parent 0c0243c commit ffbf466
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.19.1
FROM alpine:3.20.2

LABEL org.opencontainers.image.source=https://github.com/Lerentis/bitwarden-crd-operator
LABEL org.opencontainers.image.description="Kubernetes Operator to create k8s secrets from bitwarden"
Expand Down
12 changes: 7 additions & 5 deletions charts/bitwarden-crd-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description: Deploy the Bitwarden CRD Operator

type: application

version: "v0.13.1"
version: "v0.14.0"

appVersion: "0.12.1"
appVersion: "0.13.0"

keywords:
- operator
Expand Down Expand Up @@ -109,8 +109,10 @@ annotations:
artifacthub.io/operator: "true"
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/changes: |
- kind: fixed
description: "Recreation of secrets where secretType is not defined."
- kind: changed
description: "Dedicated probe handler to reduce logging noise"
- kind: changed
description: "Update Alpine to 3.20.2"
artifacthub.io/images: |
- name: bitwarden-crd-operator
image: ghcr.io/lerentis/bitwarden-crd-operator:0.12.1
image: ghcr.io/lerentis/bitwarden-crd-operator:0.13.0
5 changes: 5 additions & 0 deletions src/bitwardenCrdOperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import schedule
import time
import threading
import datetime

from utils.utils import command_wrapper, unlock_bw, sync_bw

Expand All @@ -20,6 +21,10 @@ def bitwarden_signin(logger, **kwargs):
command_wrapper(logger, "login --apikey")
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):
cease_continuous_run = threading.Event()

Expand Down

0 comments on commit ffbf466

Please sign in to comment.