updates and dedicated probe handler function
This commit is contained in:
parent
0c0243c407
commit
ffbf466416
@ -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"
|
||||
|
@ -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
|
||||
@ -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
|
||||
|
@ -4,6 +4,7 @@ import kopf
|
||||
import schedule
|
||||
import time
|
||||
import threading
|
||||
import datetime
|
||||
|
||||
from utils.utils import command_wrapper, unlock_bw, sync_bw
|
||||
|
||||
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user