Skip to content

Commit 807aae7

Browse files
Merge pull request #450 from Danil-Grigorev/fix-agent-command
🐛 Prevent machine re-rollout on system agent start command
2 parents abd1418 + bc7126b commit 807aae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/rke2/machine_filters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func matchesRKE2BootstrapConfig(machineConfigs map[string]*bootstrapv1.RKE2Confi
7676
cmds := []string{}
7777

7878
for _, cmd := range machineConfig.Spec.PostRKE2Commands { // Filter out commands that are injected by the Rancher Turtles webhook
79-
if cmd == "sudo sh /opt/system-agent-install.sh" {
79+
if cmd == "sh /opt/system-agent-install.sh" {
8080
continue
8181
}
8282

0 commit comments

Comments
 (0)