piraeusdatastore / piraeus-ha-controller

High Availability Controller for stateful workloads using storage provisioned by Piraeus
Apache License 2.0
15 stars 8 forks source link

Match Connection Names based on Satellite Pods #43

Closed WanzenBug closed 10 months ago

WanzenBug commented 10 months ago

With the switch to using daemonset-controlled satellite Pods, LINSTOR may use the Pod name instead of the hostname for DRBD connections. To support this in the HA controller, watch for satellite pods, and if a connection name matches the name of the Pod, use the Pods .spec.nodeName instead of using the connections name directly.

See also https://github.com/piraeusdatastore/piraeus-operator/pull/586