|
|
@ -101,6 +101,8 @@ type Install struct {
|
|
|
|
// (for things like templating). These are ignored if ClientOnly is false
|
|
|
|
// (for things like templating). These are ignored if ClientOnly is false
|
|
|
|
KubeVersion *chartutil.KubeVersion
|
|
|
|
KubeVersion *chartutil.KubeVersion
|
|
|
|
APIVersions chartutil.VersionSet
|
|
|
|
APIVersions chartutil.VersionSet
|
|
|
|
|
|
|
|
// Used by helm template to limit API versions to the one specified in the --api-versions tag
|
|
|
|
|
|
|
|
StrictAPIVersions bool
|
|
|
|
// Used by helm template to render charts with .Release.IsUpgrade. Ignored if Dry-Run is false
|
|
|
|
// Used by helm template to render charts with .Release.IsUpgrade. Ignored if Dry-Run is false
|
|
|
|
IsUpgrade bool
|
|
|
|
IsUpgrade bool
|
|
|
|
// Used by helm template to add the release as part of OutputDir path
|
|
|
|
// Used by helm template to add the release as part of OutputDir path
|
|
|
@ -216,7 +218,11 @@ func (i *Install) RunWithContext(ctx context.Context, chrt *chart.Chart, vals ma
|
|
|
|
if i.KubeVersion != nil {
|
|
|
|
if i.KubeVersion != nil {
|
|
|
|
i.cfg.Capabilities.KubeVersion = *i.KubeVersion
|
|
|
|
i.cfg.Capabilities.KubeVersion = *i.KubeVersion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if i.StrictAPIVersions && len(i.APIVersions) > 0 {
|
|
|
|
|
|
|
|
i.cfg.Capabilities.APIVersions = i.APIVersions
|
|
|
|
|
|
|
|
} else {
|
|
|
|
i.cfg.Capabilities.APIVersions = append(i.cfg.Capabilities.APIVersions, i.APIVersions...)
|
|
|
|
i.cfg.Capabilities.APIVersions = append(i.cfg.Capabilities.APIVersions, i.APIVersions...)
|
|
|
|
|
|
|
|
}
|
|
|
|
i.cfg.KubeClient = &kubefake.PrintingKubeClient{Out: ioutil.Discard}
|
|
|
|
i.cfg.KubeClient = &kubefake.PrintingKubeClient{Out: ioutil.Discard}
|
|
|
|
|
|
|
|
|
|
|
|
mem := driver.NewMemory()
|
|
|
|
mem := driver.NewMemory()
|
|
|
|