ydb-kubernetes-operator
ydb-kubernetes-operator copied to clipboard
New field additionalPodLabels
trafficstars
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Pull request type
Please check the type of change your PR introduces:
- [ ] Bugfix
- [x] Feature
- [ ] Code style update (formatting, renaming)
- [x] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
- [ ] Other (please describe):
What is the current behavior?
No way to configure additional pod labels - only for Pod api resource.
Field additionalLabels append new labels to all objects
What is the new behavior?
- field
additionalPodLabelsin CRD Storage and Database spec - new method
buildPodTemplateLabelsto appendadditionalPodLabelsfor statefulset builders - refactor package
labelsand move code to methodsbuildLabels,buildSelectorLabelsandbuildeNodeSetLabelsfor each resource - save labels
ydb.tech/database-nodeset,ydb.tech/storage-nodesetandydb.tech/remote-clusterby funcmakeCommonLabelsbetween resources recast
Other information
fix e2e test objects to maintain affinity rules