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

failover: fix safe volume detection using the wrong indexer #55

Closed WanzenBug closed 8 months ago

WanzenBug commented 8 months ago

We try to detect the volumes of a Pod to determine if it safe to fail over. However, we used the wrong index to get the persistent volume from the configured persistent volume claim. This meant that Pods using PVCs where considered unsafe, even if they where using DRBD resources.

To fix the issue, use the correct indexer name defined in a const.