Skip to content

Commit 52c9076

Browse files
committed
Add new required-by-node-labeler label to ws-daemon and registry-facade
Signed-off-by: Manuel de Brito Fontes <[email protected]>
1 parent 9a6fe23 commit 52c9076

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

install/installer/pkg/components/registry-facade/daemonset.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ import (
2626
const wsManagerMk2ClientTlsVolume = "ws-manager-mk2-client-tls-certs"
2727

2828
func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
29-
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDaemonset)
29+
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDaemonset, func() map[string]string {
30+
return map[string]string{
31+
"required-by-node-labeler": "true",
32+
}
33+
})
3034

3135
var hashObj []runtime.Object
3236
if objs, err := configmap(ctx); err != nil {

install/installer/pkg/components/ws-daemon/daemonset.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ import (
2222

2323
func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
2424
cfg := ctx.Config
25-
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDaemonset)
25+
26+
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDaemonset, func() map[string]string {
27+
return map[string]string{
28+
"required-by-node-labeler": "true",
29+
}
30+
})
2631

2732
configHash, err := common.ObjectHash(configmap(ctx))
2833
if err != nil {

0 commit comments

Comments
 (0)