Commit 2b1f9c8f authored by Jacob Blain Christen's avatar Jacob Blain Christen
Browse files

ccapply: add label with the value of k3os.mode

If the `k3os.mode` (read from /var/run/k3os/mode) is not empty then add
node-label `k3os.io/mode=${k3os.mode}`.
Showing with 3 additions and 0 deletions
+3 -0
......@@ -137,6 +137,9 @@ func ApplyK3S(cfg *config.CloudConfig, restart, install bool) error {
for k, v := range cfg.K3OS.Labels {
labels = append(labels, fmt.Sprintf("%s=%s", k, v))
}
if mode != "" {
labels = append(labels, fmt.Sprintf("k3os.io/mode=%s", mode))
}
sort.Strings(labels)
for _, l := range labels {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment