-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
…e to update k3s flags
@@ -29,6 +29,11 @@ type Flags struct { | |||
RemoteVersion string | |||
} | |||
|
|||
Iface string |
There was a problem hiding this comment.
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{ |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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{}) |
There was a problem hiding this comment.
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
No description provided.