Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve k3s upgrade, more cli opts, updates k3s env #60

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

bohdand-weka
Copy link
Contributor

No description provided.

@@ -29,6 +29,11 @@ type Flags struct {
RemoteVersion string
}

Iface string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those flags moved to common

@@ -55,7 +55,7 @@ func runSetup(cmd *cobra.Command, args []string) (err error) {
}
}()

err = k3s.Install(cmd.Context(), k3s.InstallConfig{
err = k3s.Install(cmd.Context(), k3s.Config{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now install config and upgrade config are the same

logger.Info().Msg("Install completed")

return nil
return k3sInstall(ctx, c, fi, r)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to shared func

"github.com/weka/gohomecli/internal/utils"
)

const (
k3sInstallPath = "/usr/local/bin"
)

type Config struct {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to k3s file from install

@@ -20,7 +20,7 @@ func upgrade(w http.ResponseWriter, r *http.Request) {
return
}

err := k3s.Upgrade(r.Context(), k3s.UpgradeConfig{})
err := k3s.Upgrade(r.Context(), k3s.Config{})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

web is still not implemented

@bohdand-weka bohdand-weka merged commit de4b89f into release/v0.4 Feb 1, 2024
2 checks passed
@bohdand-weka bohdand-weka deleted the feat/better-updrade branch February 1, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants