|
|
|
@ -38,6 +38,7 @@ import (
|
|
|
|
"helm.sh/helm/v4/pkg/cmd/require"
|
|
|
|
"helm.sh/helm/v4/pkg/cmd/require"
|
|
|
|
"helm.sh/helm/v4/pkg/downloader"
|
|
|
|
"helm.sh/helm/v4/pkg/downloader"
|
|
|
|
"helm.sh/helm/v4/pkg/getter"
|
|
|
|
"helm.sh/helm/v4/pkg/getter"
|
|
|
|
|
|
|
|
"helm.sh/helm/v4/pkg/kube"
|
|
|
|
release "helm.sh/helm/v4/pkg/release/v1"
|
|
|
|
release "helm.sh/helm/v4/pkg/release/v1"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@ -157,6 +158,8 @@ func newInstallCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
client.DryRunStrategy = dryRunStrategy
|
|
|
|
client.DryRunStrategy = dryRunStrategy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printWaitMessage(out, outfmt, client.WaitStrategy, client.Timeout)
|
|
|
|
|
|
|
|
|
|
|
|
rel, err := runInstall(args, client, valueOpts, out)
|
|
|
|
rel, err := runInstall(args, client, valueOpts, out)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return fmt.Errorf("INSTALLATION FAILED: %w", err)
|
|
|
|
return fmt.Errorf("INSTALLATION FAILED: %w", err)
|
|
|
|
@ -370,6 +373,13 @@ func checkIfInstallable(ch chart.Accessor) error {
|
|
|
|
return fmt.Errorf("%s charts are not installable", meta["Type"])
|
|
|
|
return fmt.Errorf("%s charts are not installable", meta["Type"])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func printWaitMessage(out io.Writer, outfmt output.Format, strategy kube.WaitStrategy, timeout time.Duration) {
|
|
|
|
|
|
|
|
if outfmt != output.Table || strategy == kube.HookOnlyStrategy {
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
fmt.Fprintf(out, "Waiting for resources to become ready (timeout: %s)\n", timeout)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Provide dynamic auto-completion for the install and template commands
|
|
|
|
// Provide dynamic auto-completion for the install and template commands
|
|
|
|
func compInstall(args []string, toComplete string, client *action.Install) ([]string, cobra.ShellCompDirective) {
|
|
|
|
func compInstall(args []string, toComplete string, client *action.Install) ([]string, cobra.ShellCompDirective) {
|
|
|
|
requiredArgs := 1
|
|
|
|
requiredArgs := 1
|
|
|
|
|