Skip to content

Commit

Permalink
Move "Before Apply" hooks back to after "Upload Files" (#622)
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Jan 8, 2024
1 parent 5d03ed1 commit 69f7ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func (a Apply) Run() error {
&phase.ValidateHosts{},
&phase.GatherK0sFacts{},
&phase.ValidateFacts{SkipDowngradeCheck: a.DisableDowngradeCheck},
&phase.RunHooks{Stage: "before", Action: "apply"},

// if UploadBinaries: true
&phase.DownloadBinaries{}, // downloads k0s binaries to local cache
Expand All @@ -57,13 +56,14 @@ func (a Apply) Run() error {
// if UploadBinaries: false
&phase.DownloadK0s{}, // downloads k0s binaries directly from hosts

&phase.UploadFiles{},
&phase.InstallBinaries{},
&phase.PrepareArm{},
&phase.ConfigureK0s{},
&phase.UploadFiles{},
&phase.Restore{
RestoreFrom: a.RestoreFrom,
},
&phase.RunHooks{Stage: "before", Action: "apply"},
&phase.InitializeK0s{},
&phase.InstallControllers{},
&phase.InstallWorkers{},
Expand Down

0 comments on commit 69f7ae9

Please sign in to comment.