Custom Annotations are not updated in StatefulSet on change in SGCluster
Summary
When adding a custom Annotation to an SGCluster, the StatefulSet is not updated, thus the annotations do not show up on the pods. When setting the right custom annotations when creating the cluster, things work correctly.
Current Behaviour
No annotations are set in the template for the StatefulSet.
Steps to reproduce
- Create an SGCluster
- Edit that SGCluster, add custom annotations for the pods.
- Verify that they are not propagated to the pods.
Expected Behaviour
The custom annotations should be propagated to the pods.
Possible Solution
The Operator should update the StatefulSet's template to include the correct annotations.
Environment
- StackGres version: 1.0.0-alpha1
- Kubernetes version: 1.17.9
- Cloud provider or hardware configuration: AKS / GKE