At the moment, the resources managed by Eirini follow this ownership scheme:
eiriniv1.LRPs own StatefulSets
StatefulSets own PodDisruptionBudgets and Secrets
This is a leftover of the REST flow, which needed to use StatefulSets as owners since there were no eiriniv1.LRPs. We should be able to make this much more straightforward by just assigning the eiriniv1.LRP as the owner of all the resources we create.
At the moment, the resources managed by Eirini follow this ownership scheme:
eiriniv1.LRP
s ownStatefulSet
sStatefulSet
s ownPodDisruptionBudget
s andSecret
sThis is a leftover of the REST flow, which needed to use
StatefulSet
s as owners since there were noeiriniv1.LRP
s. We should be able to make this much more straightforward by just assigning theeiriniv1.LRP
as the owner of all the resources we create.