Skip to content

Commit 97f0b97

Browse files
authored
New field additionalPodLabels (#237)
1 parent 51aa80a commit 97f0b97

24 files changed

+1018
-839
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Added
2+
body: new field additionalPodLabels for Storage and Database CRD
3+
time: 2024-12-04T12:26:09.597907+07:00
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Added
2+
body: new method buildPodTemplateLabels to append additionalPodLabels for statefulset builders
3+
time: 2024-12-04T12:26:33.654222+07:00
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Changed
2+
body: refactor package labels to separate methods buildLabels, buildSelectorLabels and buildeNodeSetLabels for each resource
3+
time: 2024-12-04T12:26:59.096105+07:00
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Changed
2+
body: propagate labels ydb.tech/database-nodeset, ydb.tech/storage-nodeset and ydb.tech/remote-cluster with method makeCommonLabels between resource recasting
3+
time: 2024-12-04T12:27:13.265234+07:00
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Fixed
2+
body: additional kind worker to maintain affinity rules for blobstorage init job
3+
time: 2024-12-04T12:27:36.97703+07:00

api/v1alpha1/database_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ type DatabaseNodeSpec struct {
165165
// +optional
166166
AdditionalLabels map[string]string `json:"additionalLabels,omitempty"`
167167

168+
// (Optional) Additional custom resource labels that are added to Pods
169+
// +optional
170+
AdditionalPodLabels map[string]string `json:"additionalPodLabels,omitempty"`
171+
168172
// (Optional) Additional custom resource annotations that are added to all resources
169173
// +optional
170174
AdditionalAnnotations map[string]string `json:"additionalAnnotations,omitempty"`

api/v1alpha1/storage_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ type StorageNodeSpec struct {
162162
// +optional
163163
AdditionalLabels map[string]string `json:"additionalLabels,omitempty"`
164164

165+
// (Optional) Additional custom resource labels that are added to Pods
166+
// +optional
167+
AdditionalPodLabels map[string]string `json:"additionalPodLabels,omitempty"`
168+
165169
// (Optional) Additional custom resource annotations that are added to all resources
166170
// +optional
167171
AdditionalAnnotations map[string]string `json:"additionalAnnotations,omitempty"`

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/ydb-operator/crds/database.yaml

Lines changed: 199 additions & 183 deletions
Large diffs are not rendered by default.

deploy/ydb-operator/crds/databasenodeset.yaml

Lines changed: 98 additions & 84 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)