|
|
@ -147,9 +147,12 @@ func (i *Install) installCRDs(crds []*chart.File) error {
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// If DryRun is set to true, this will prepare the release, but not install it
|
|
|
|
// If DryRun is set to true, this will prepare the release, but not install it
|
|
|
|
func (i *Install) Run(chrt *chart.Chart, vals map[string]interface{}) (*release.Release, error) {
|
|
|
|
func (i *Install) Run(chrt *chart.Chart, vals map[string]interface{}) (*release.Release, error) {
|
|
|
|
|
|
|
|
// Check reachability of cluster unless in client-only mode (e.g. `helm template` without `--validate`)
|
|
|
|
|
|
|
|
if !i.ClientOnly {
|
|
|
|
if err := i.cfg.KubeClient.IsReachable(); err != nil {
|
|
|
|
if err := i.cfg.KubeClient.IsReachable(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if err := i.availableName(); err != nil {
|
|
|
|
if err := i.availableName(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|