Skip to content

Commit f8bb761

Browse files
authored
Merge pull request #154 from k8s-infra-cherrypick-robot/cherry-pick-151-to-release-0.4
[release-0.4] controller: fix nfd-master cmdline args
2 parents 2dfb1f2 + a0cc27e commit f8bb761

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

controllers/nodefeaturediscovery_controls.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,19 +467,19 @@ func Deployment(n NFD) (ResourceStatus, error) {
467467
// expected that n.ins.Spec.Instance will return ""
468468
// https://kubernetes-sigs.github.io/node-feature-discovery/v0.8/advanced/master-commandline-reference.html#-instance
469469
if n.ins.Spec.Instance != "" {
470-
args = append(args, fmt.Sprintf("--instance=%q", n.ins.Spec.Instance))
470+
args = append(args, fmt.Sprintf("--instance=%s", n.ins.Spec.Instance))
471471
}
472472

473473
if len(n.ins.Spec.ExtraLabelNs) != 0 {
474-
args = append(args, fmt.Sprintf("--extra-label-ns=%q", strings.Join(n.ins.Spec.ExtraLabelNs, ",")))
474+
args = append(args, fmt.Sprintf("--extra-label-ns=%s", strings.Join(n.ins.Spec.ExtraLabelNs, ",")))
475475
}
476476

477477
if len(n.ins.Spec.ResourceLabels) != 0 {
478-
args = append(args, fmt.Sprintf("--resource-labels=%q", strings.Join(n.ins.Spec.ResourceLabels, ",")))
478+
args = append(args, fmt.Sprintf("--resource-labels=%s", strings.Join(n.ins.Spec.ResourceLabels, ",")))
479479
}
480480

481481
if strings.TrimSpace(n.ins.Spec.LabelWhiteList) != "" {
482-
args = append(args, fmt.Sprintf("--label-whitelist=%q", n.ins.Spec.LabelWhiteList))
482+
args = append(args, fmt.Sprintf("--label-whitelist=%s", n.ins.Spec.LabelWhiteList))
483483
}
484484

485485
obj.Spec.Template.Spec.Containers[0].Args = args

0 commit comments

Comments
 (0)