mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-04-27 11:21:44 +00:00
Make kairos-agent support install local bundle (#1296)
Signed-off-by: zhanglei <zhanglei@smartx.com>
This commit is contained in:
parent
863ca11b1d
commit
98ec3aa12c
@ -174,6 +174,10 @@ E.g. kairos-agent install-bundle container:quay.io/kairos/kairos...
|
||||
EnvVars: []string{"REPOSITORY"},
|
||||
Value: "docker://quay.io/kairos/packages",
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "local-file",
|
||||
EnvVars: []string{"LOCAL_FILE"},
|
||||
},
|
||||
},
|
||||
UsageText: "Install a bundle manually in the node",
|
||||
Action: func(c *cli.Context) error {
|
||||
@ -181,7 +185,7 @@ E.g. kairos-agent install-bundle container:quay.io/kairos/kairos...
|
||||
return fmt.Errorf("bundle name required")
|
||||
}
|
||||
|
||||
return bundles.RunBundles([]bundles.BundleOption{bundles.WithRepository(c.String("repository")), bundles.WithTarget(c.Args().First())})
|
||||
return bundles.RunBundles([]bundles.BundleOption{bundles.WithRepository(c.String("repository")), bundles.WithTarget(c.Args().First()), bundles.WithLocalFile(c.Bool("local-file"))})
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user