Skip to content

Commit 424f45c

Browse files
authored
add labelSelector for common-service-db in topology constraints (#2478)
Signed-off-by: Daniel Fan <[email protected]>
1 parent 315e378 commit 424f45c

File tree

1 file changed

+12
-0
lines changed
  • internal/controller/constant

1 file changed

+12
-0
lines changed

internal/controller/constant/odlm.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,9 +1742,21 @@ spec:
17421742
- maxSkew: 1
17431743
topologyKey: topology.kubernetes.io/zone
17441744
whenUnsatisfiable: ScheduleAnyway
1745+
labelSelector:
1746+
matchExpressions:
1747+
- key: k8s.enterprisedb.io/cluster
1748+
operator: In
1749+
values:
1750+
- common-service-db
17451751
- maxSkew: 1
17461752
topologyKey: topology.kubernetes.io/region
17471753
whenUnsatisfiable: ScheduleAnyway
1754+
labelSelector:
1755+
matchExpressions:
1756+
- key: k8s.enterprisedb.io/cluster
1757+
operator: In
1758+
values:
1759+
- common-service-db
17481760
imageName:
17491761
templatingValueFrom:
17501762
default:

0 commit comments

Comments
 (0)