Skip to content

Commit e1f0a8f

Browse files
author
Jeff McCormick
committed
fix affinitiy logic and template
1 parent c889bdd commit e1f0a8f

File tree

6 files changed

+53
-383
lines changed

6 files changed

+53
-383
lines changed
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
"affinity": {
2-
"nodeAffinity": {
3-
"preferredDuringSchedulingIgnoredDuringExecution": {
4-
"nodeSelectorTerms": [{
5-
"matchExpressions": [{
6-
"key": "kubernetes.io/hostname",
7-
"operator": "{{.OPERATOR}}",
8-
"values": [
9-
"{{.NODE}}"
10-
]
11-
}]
12-
}]
13-
}
14-
}
15-
},
16-
1+
"affinity": {
2+
"nodeAffinity": {
3+
"preferredDuringSchedulingIgnoredDuringExecution": [{
4+
"weight": 1,
5+
"preference": {
6+
"matchExpressions": [{
7+
"key": "kubernetes.io/hostname",
8+
"operator": "{{.OPERATOR}}",
9+
"values": [
10+
"{{.NODE}}"
11+
]
12+
}]
13+
}
14+
}]
15+
}
16+
},

conf/postgres-operator/cluster/1/cluster-deployment-1-affinity.json

Lines changed: 0 additions & 136 deletions
This file was deleted.

conf/postgres-operator/cluster/1/cluster-replica-deployment-1-affinity.json

Lines changed: 0 additions & 113 deletions
This file was deleted.

conf/postgres-operator/cluster/1/cluster-replica-deployment-1-shared-aff.json

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)