mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-16 14:40:28 +00:00
seedling: Add auth flags to upgrade (#1179)
This commit is contained in:
@@ -37,6 +37,12 @@ var cmds = []*cli.Command{
|
||||
Name: "image",
|
||||
Usage: "Specify an full image reference, e.g.: quay.io/some/image:tag",
|
||||
},
|
||||
&cli.StringFlag{Name: "auth-username", Usage: "Username to authenticate to registry"},
|
||||
&cli.StringFlag{Name: "auth-password", Usage: "Password to authenticate to registry"},
|
||||
&cli.StringFlag{Name: "auth-server-address", Usage: "Authentication server address"},
|
||||
&cli.StringFlag{Name: "auth-type", Usage: "Auth type"},
|
||||
&cli.StringFlag{Name: "auth-registry-token", Usage: "Authentication registry token"},
|
||||
&cli.StringFlag{Name: "auth-identity-token", Usage: "Authentication identity token"},
|
||||
},
|
||||
Description: `
|
||||
Manually upgrade a kairos node.
|
||||
@@ -79,7 +85,13 @@ See https://kairos.io/docs/upgrade/manual/ for documentation.
|
||||
if c.Args().Len() == 1 {
|
||||
v = c.Args().First()
|
||||
}
|
||||
return agent.Upgrade(v, c.String("image"), c.Bool("force"), c.Bool("debug"), c.Bool("strict-validation"), configScanDir)
|
||||
|
||||
return agent.Upgrade(
|
||||
v, c.String("image"), c.Bool("force"), c.Bool("debug"),
|
||||
c.Bool("strict-validation"), configScanDir,
|
||||
c.String("auth-username"), c.String("auth-password"), c.String("auth-server-address"),
|
||||
c.String("auth-type"), c.String("auth-registry-token"), c.String("auth-identity-token"),
|
||||
)
|
||||
},
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user