The operator does not add node spec's podLabels to the statefulsets unless a user also defines podLabels for the cluster spec.
This change will always add both cluster and node spec podLabels as long as they are defined. If same labels are defined for both cluster spec and pod spec then it'll prefer node spec values over cluster spec.
This PR has:
[ ] been tested on a real K8S cluster to ensure creation of a brand new Druid cluster works.
[ ] been tested for backward compatibility on a real K*S cluster by applying the changes introduced here on an existing Druid cluster. If there are any backward incompatible changes then they have been noted in the PR description.
[x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[ ] added documentation for new or modified features or behaviors.
Fixes #183
Description
The operator does not add node spec's podLabels to the statefulsets unless a user also defines podLabels for the cluster spec.
This change will always add both cluster and node spec podLabels as long as they are defined. If same labels are defined for both cluster spec and pod spec then it'll prefer node spec values over cluster spec.
This PR has: