galera-operator icon indicating copy to clipboard operation
galera-operator copied to clipboard

annotation support

Open punasusi opened this issue 5 years ago • 3 comments

adding annotations to the sql.databases/v1beta2 Galera template which could be added to the Galera pods created by the operator would be very useful feature. (maybe labels also?)

punasusi avatar Nov 05 '20 05:11 punasusi

Have you an example about your needs ? Today, Labels and Annotations are available for the Galera object, and are not copied to pods (and we do not have labels and annotations in pod template) because you should not manage pods but only Galera objects. Today we are missing a client or an api (api is experimented but it is not a clean solution, the design of mysql and Galera is cli oriented) to execute commands on Galera cluster and we have to connect at the beginning to create tables, users and so on. Have you something else in mind ?

sebs42 avatar Nov 05 '20 08:11 sebs42

Our monitoring solution needs pods to have annotations, in order to export the metrics. The idea is not to really manage the pods, but to be able to select them based on annotations by other tools/scripts/jobs. I don't have any use case for labels currently. We also generate pod usage reports for cost allocations based on annotations and labels (still proof of concept). Just considering that is 'passing annotations and labels' from Galera object to the pods it manages, it shouldn't really cause any issues I can see, and adds other possibilities.

punasusi avatar Nov 05 '20 09:11 punasusi

ok so Annotations and Labels can be implemented in PodTemplate, It means it can be different from Annotations and Labels provided for the Galera Object. I will check that.

sebs42 avatar Nov 05 '20 13:11 sebs42