This commit is contained in:
2023-11-08 14:55:05 +01:00
parent 3d28188833
commit 827ebdadad
2 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,7 @@ spec:
spec:
containers:
- name: pv-controller
image: wollud1969/pv-controller:1.0.3
image: wollud1969/pv-controller:1.0.4
envFrom:
- configMapRef:
name: pv-controller

View File

@ -1,4 +1,5 @@
import os
from loguru import logger
class Config:
OPTIONS = {
@ -23,6 +24,7 @@ class Config:
varname = f"{section}__{key}".upper()
try:
self.values[section][key] = os.environ[varname]
logger.info(f"Config: {section} {key} -> {self.values[section][key]}")
except KeyError:
pass