Skip to content

Commit 204444b

Browse files
author
Marko Mikulicic
authored
fix: Use singular in --node-label and --node-taint flags (#38)
1 parent da514da commit 204444b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/k3s/config.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package k3s
22

33
import (
44
"fmt"
5-
bootstrapv1 "github.com/zawachte/cluster-api-k3s/bootstrap/api/v1beta1"
65
"strings"
6+
7+
bootstrapv1 "github.com/zawachte/cluster-api-k3s/bootstrap/api/v1beta1"
78
)
89

910
const DefaultK3sConfigLocation = "/etc/rancher/k3s/config.yaml"
@@ -30,8 +31,8 @@ type K3sAgentConfig struct {
3031
Token string `json:"token,omitempty"`
3132
Server string `json:"server,omitempty"`
3233
KubeletArgs []string `json:"kubelet-arg,omitempty"`
33-
NodeLabels []string `json:"node-labels,omitempty"`
34-
NodeTaints []string `json:"node-taints,omitempty"`
34+
NodeLabels []string `json:"node-label,omitempty"`
35+
NodeTaints []string `json:"node-taint,omitempty"`
3536
PrivateRegistry string `json:"private-registry,omitempty"`
3637
KubeProxyArgs []string `json:"kube-proxy-arg,omitempty"`
3738
NodeName string `json:"node-name,omitempty"`

0 commit comments

Comments
 (0)