gardener / machine-controller-manager

Declarative way of managing machines for Kubernetes cluster
Apache License 2.0
257 stars 117 forks source link

Add namespace to dummy machine object so that driver can rely on the namespace being set #932

Closed ScheererJ closed 4 months ago

ScheererJ commented 4 months ago

What this PR does / why we need it:

Add namespace to dummy machine object so that driver can rely on the namespace being set.

Some drivers may assume that the namespace of the machine resources is correctly set when a request is sent to them, e.g. see https://github.com/gardener/gardener/pull/10176. As the namespace of the machine is known due to its machine class, it should be always safe to set the correct namespace.

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer:

Release note: