Labels and annotations changes are not applied through cr.yaml

Description

It is the same issue that MongoDB operator has here: https://jira.percona.com/browse/K8SPSMDB-346

 

Labels

  • Steps to reproduce

  1. Change or add new labels in spec.pxc.labels section in cr.yaml

  2. apply new cr.yaml

  • Expected behavior

Pods restart and new labels are applied

  • What is happening

Pods are restarted, but new labels are not there.

Annotations

Pods are not even restarted if spec.pxc.annotations is changed.

 

Environment

None

Smart Checklist

Activity

Show:
Done

Details

Assignee

Reporter

Needs Review

Yes

Time tracking

6h logged

Fix versions

Priority

Smart Checklist

Created January 4, 2021 at 11:48 AM
Updated March 5, 2024 at 6:00 PM
Resolved March 19, 2021 at 9:52 AM