Skip to content

Commit 13257cc

Browse files
committed
Allow mutiple pool configurations (continue)
Signed-off-by: Markus Blaschke <[email protected]>
1 parent ebaaf6c commit 13257cc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type (
1717

1818
PoolConfig struct {
1919
Name string `yaml:"pool"`
20+
Continue bool `yaml:"continue"`
2021
Selector []PoolConfigSelector `yaml:"selector"`
2122
Node PoolConfigNode `yaml:"node"`
2223
}

manager/manager.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ func (m *KubePoolManager) applyNode(node *corev1.Node) {
141141
}
142142

143143
m.prometheus.nodeApplied.WithLabelValues(node.Name).Set(1)
144+
145+
// check if this more pool configurations should be applied
146+
if !poolConfig.Continue {
147+
break
148+
}
144149
} else {
145150
contextLogger.Debugf("Node NOT matches pool configuration \"%s\"", poolConfig.Name)
146151
}

0 commit comments

Comments
 (0)