Instead of manually cleaning up shadow services in the cleanup command it would be more appropriate to create
shadow services with the controller deployment as an OwnerReference. This will delegate shadow service deletion to kubernetes garbage collector and the cleanup command could be simplified.
Workarounds
Keep using the cleanup command for removing shadow services.
Feature Request
Proposal
Instead of manually cleaning up shadow services in the
cleanup
command it would be more appropriate to create shadow services with the controller deployment as anOwnerReference
. This will delegate shadow service deletion to kubernetes garbage collector and the cleanup command could be simplified.Workarounds
Keep using the
cleanup
command for removing shadow services.