File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
internal/controllers/storage Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import (
17
17
"github.com/ydb-platform/ydb-kubernetes-operator/api/v1alpha1"
18
18
. "github.com/ydb-platform/ydb-kubernetes-operator/internal/controllers/constants" //nolint:revive,stylecheck
19
19
"github.com/ydb-platform/ydb-kubernetes-operator/internal/exec"
20
+ "github.com/ydb-platform/ydb-kubernetes-operator/internal/labels"
20
21
"github.com/ydb-platform/ydb-kubernetes-operator/internal/resources"
21
22
)
22
23
@@ -113,7 +114,8 @@ func (r *Reconciler) initializeStorage(
113
114
// List Pods by label Selector
114
115
podList := & corev1.PodList {}
115
116
matchingLabels := client.MatchingLabels {}
116
- for k , v := range storage .Labels {
117
+ storageLabels := labels .StorageLabels (storage .Unwrap ())
118
+ for k , v := range storageLabels {
117
119
matchingLabels [k ] = v
118
120
}
119
121
opts := []client.ListOption {
You can’t perform that action at this time.
0 commit comments