From 614692c47d0a65cbec64349f8c6241072aa4ac86 Mon Sep 17 00:00:00 2001 From: Andrea Mazzotti Date: Wed, 6 Dec 2023 17:35:09 +0100 Subject: [PATCH] append /run/cluster-api/bootstrap-success.complete (#79) Signed-off-by: Andrea Mazzotti --- pkg/cloudinit/controlplane_init.go | 2 +- pkg/cloudinit/controlplane_join.go | 2 +- pkg/cloudinit/worker_join.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cloudinit/controlplane_init.go b/pkg/cloudinit/controlplane_init.go index 6f8a6d40..5accc6c2 100644 --- a/pkg/cloudinit/controlplane_init.go +++ b/pkg/cloudinit/controlplane_init.go @@ -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 }} ` ) diff --git a/pkg/cloudinit/controlplane_join.go b/pkg/cloudinit/controlplane_join.go index ae2059d4..02ab511d 100644 --- a/pkg/cloudinit/controlplane_join.go +++ b/pkg/cloudinit/controlplane_join.go @@ -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 }} ` ) diff --git a/pkg/cloudinit/worker_join.go b/pkg/cloudinit/worker_join.go index 5123bf4f..906e4153 100644 --- a/pkg/cloudinit/worker_join.go +++ b/pkg/cloudinit/worker_join.go @@ -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 }} ` )