Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit 880bb17

Browse files
YuxingCraig Jellick
Yuxing
authored and
Craig Jellick
committed
Change the label name of skip host healthcheck.
Use `io.rancher.host.healthcheck.deploy_strategy` instead of `io.rancher.infra_service.healthcheck.deploy` for consistency. More extensiablity as using strategy subfix.
1 parent d1e20ce commit 880bb17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/hostInfo/os_c.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package hostInfo
22

33
import (
44
"fmt"
5+
56
"github.com/pkg/errors"
67
"github.com/rancher/agent/model"
78
"github.com/rancher/agent/utilities/constants"
@@ -54,7 +55,7 @@ func (o OSCollector) GetLabels(prefix string) (map[string]string, error) {
5455
fmt.Sprintf("%s.%s", prefix, "os"): getOSName(),
5556
}
5657
if getOSName() == "windows" {
57-
labels["io.rancher.infra_service.healthcheck.deploy"] = "never"
58+
labels["io.rancher.host.healthcheck.deploy_strategy"] = "skip"
5859
}
5960
return labels, nil
6061
}

0 commit comments

Comments
 (0)