Skip to content

Commit

Permalink
append /run/cluster-api/bootstrap-success.complete
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Mazzotti <[email protected]>
  • Loading branch information
anmazzotti committed Dec 5, 2023
1 parent 090c3e0 commit 1f3896f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cloudinit/controlplane_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
{{template "files" .WriteFiles}}
runcmd:
{{- template "commands" .PreK3sCommands }}
- 'curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=%s sh -s - server'
- 'curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=%s sh -s - server && mkdir -p /run/cluster-api && echo success > /run/cluster-api/bootstrap-success.complete'
{{- template "commands" .PostK3sCommands }}
`
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/cloudinit/controlplane_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
{{template "files" .WriteFiles}}
runcmd:
{{- template "commands" .PreK3sCommands }}
- 'curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=%s sh -s - server'
- 'curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=%s sh -s - server && mkdir -p /run/cluster-api && echo success > /run/cluster-api/bootstrap-success.complete'
{{- template "commands" .PostK3sCommands }}
`
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/cloudinit/worker_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
{{template "files" .WriteFiles}}
runcmd:
{{- template "commands" .PreK3sCommands }}
- 'curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=%s sh -s - agent'
- 'curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=%s sh -s - agent && mkdir -p /run/cluster-api && echo success > /run/cluster-api/bootstrap-success.complete'
{{- template "commands" .PostK3sCommands }}
`
)
Expand Down

0 comments on commit 1f3896f

Please sign in to comment.