k8up-io / k8up

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

Properly set logger before creating a typed client #988

Closed Kidswiss closed 4 months ago

Kidswiss commented 4 months 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