Exemple #1
0
func install(c *cli.Context) {
	minArgs(c, 1, "install")
	h := home(c)
	force := c.Bool("force")
	dryRun := c.Bool("dry-run")

	for _, chart := range c.Args() {
		action.Install(chart, h, c.String("namespace"), force, dryRun)
	}
}
Exemple #2
0
func install(c *cli.Context) {
	minArgs(c, 1, "install")
	h := home(c)
	force := c.Bool("force")

	client := kubectl.Client
	if c.Bool("dry-run") {
		client = kubectl.PrintRunner{}
	}

	for _, chart := range c.Args() {
		action.Install(chart, h, c.String("namespace"), force, client)
	}
}
Exemple #3
0
func install(c *cli.Context) {
	minArgs(c, 1, "install")
	h := home(c)
	force := c.Bool("force")
	dryRun := c.Bool("dry-run")

	// If chart-path is specified, we do an alternative install.
	//
	// This version will only install one chart at a time, since the
	// chart-path can only point to one chart.
	if alt := c.String("chart-path"); alt != "" {
		action.AltInstall(c.Args()[0], alt, h, c.String("namespace"), force, dryRun)
		return
	}

	for _, chart := range c.Args() {
		action.Install(chart, h, c.String("namespace"), force, dryRun)
	}
}