fix k8s things

This commit is contained in:
2024-03-18 22:08:43 +02:00
parent 5c1ffcbdc3
commit f6a728ef1a
3 changed files with 92 additions and 78 deletions

2
k8s.py
View File

@ -67,7 +67,7 @@ try:
CONFIG = yaml.safe_load(V1.read_namespaced_config_map(name="config-outfleet", namespace=NAMESPACE).data['config.yaml'])
log.info("Created new ConfigMap [config-outfleet]")
except Exception as e:
log.info("Failed to create new ConfigMap [config-outfleet] {e}")
log.info(f"Failed to create new ConfigMap [config-outfleet] {e}")
except:
log.info("Kubernetes environment not detected")
except: