dragonflydb / dragonfly-operator

A Kubernetes operator to install and manage Dragonfly instances.
https://www.dragonflydb.io/docs/managing-dragonfly/operator/installation
Apache License 2.0
144 stars 34 forks source link

Common labels propagation #226

Open sergeyshevch opened 3 months ago

sergeyshevch commented 3 months ago

Hello! We use common well-known kubernetes labels together with dragonfly but looks like it works wrong.

I have labels on Drafonfly resource:

    app.kubernetes.io/instance: redis
    app.kubernetes.io/name: project

I expect that this labels will be propagated to all resources created by operator including pods. I want to depend on this labels in network policies, pdb and multiple other places

Also it will be good if all parent resource labels and annotations will be propagated to child resources. It will fix ArgoCD usage with dragonfly operator. Now it works correctly only for kind:Service

Screenshot 2024-08-06 at 9 41 55 AM