Skip to content

Commit

Permalink
handle single parameter to get k0s role
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmingacic committed May 19, 2021
1 parent e946512 commit 89d56b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/install/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func GetRoleByPID(pid int) (role string, err error) {
return "", err
}
cmdln := string(raw)
if strings.Contains(cmdln, "enable-worker") {
if strings.Contains(cmdln, "enable-worker") || strings.Contains(cmdln, "single") {
return "controller+worker", nil
} else if strings.Contains(cmdln, "controller") {
return "controller", nil
Expand Down

0 comments on commit 89d56b2

Please sign in to comment.