k8up-io / k8up

Kubernetes and OpenShift Backup Operator
https://k8up.io/
Apache License 2.0
636 stars 63 forks source link

Properly set logger before creating a typed client #988

Closed Kidswiss closed 1 month ago

Kidswiss commented 1 month ago

Summary

During pre-backup operations it was possible that the typed client was initialized without setting the logger first. Which lead to a big, but harmless, stacktrace in the backup pods.

This commit makes sure that the logger will be set every time the client gets created.

Resolves: #981

Checklist

For Code changes