mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge pull request #6959 from dastrobu/chart-requires-kubeVersion
fix: change error message to contain correct field name
This commit is contained in:
commit
59dbf5debd
2 changed files with 2 additions and 2 deletions
|
|
@ -420,7 +420,7 @@ func (c *Configuration) renderResources(ch *chart.Chart, values chartutil.Values
|
|||
|
||||
if ch.Metadata.KubeVersion != "" {
|
||||
if !chartutil.IsCompatibleRange(ch.Metadata.KubeVersion, caps.KubeVersion.String()) {
|
||||
return hs, b, "", errors.Errorf("chart requires kubernetesVersion: %s which is incompatible with Kubernetes %s", ch.Metadata.KubeVersion, caps.KubeVersion.String())
|
||||
return hs, b, "", errors.Errorf("chart requires kubeVersion: %s which is incompatible with Kubernetes %s", ch.Metadata.KubeVersion, caps.KubeVersion.String())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -306,7 +306,7 @@ func TestInstallRelease_KubeVersion(t *testing.T) {
|
|||
vals = map[string]interface{}{}
|
||||
_, err = instAction.Run(buildChart(withKube(">=99.0.0")), vals)
|
||||
is.Error(err)
|
||||
is.Contains(err.Error(), "chart requires kubernetesVersion")
|
||||
is.Contains(err.Error(), "chart requires kubeVersion")
|
||||
}
|
||||
|
||||
func TestInstallRelease_Wait(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue