|
|
@ -21,10 +21,8 @@ import (
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
"path/filepath"
|
|
|
|
"path/filepath"
|
|
|
|
"runtime"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/ghodss/yaml"
|
|
|
|
"github.com/ghodss/yaml"
|
|
|
|
"k8s.io/apimachinery/pkg/version"
|
|
|
|
|
|
|
|
"k8s.io/helm/pkg/chartutil"
|
|
|
|
"k8s.io/helm/pkg/chartutil"
|
|
|
|
"k8s.io/helm/pkg/engine"
|
|
|
|
"k8s.io/helm/pkg/engine"
|
|
|
|
"k8s.io/helm/pkg/lint/support"
|
|
|
|
"k8s.io/helm/pkg/lint/support"
|
|
|
@ -55,14 +53,8 @@ func Templates(linter *support.Linter) {
|
|
|
|
|
|
|
|
|
|
|
|
options := chartutil.ReleaseOptions{Name: "testRelease", Time: timeconv.Now(), Namespace: "testNamespace"}
|
|
|
|
options := chartutil.ReleaseOptions{Name: "testRelease", Time: timeconv.Now(), Namespace: "testNamespace"}
|
|
|
|
caps := &chartutil.Capabilities{
|
|
|
|
caps := &chartutil.Capabilities{
|
|
|
|
APIVersions: chartutil.DefaultVersionSet,
|
|
|
|
APIVersions: chartutil.DefaultVersionSet,
|
|
|
|
KubeVersion: &version.Info{
|
|
|
|
KubeVersion: chartutil.DefaultKubeVersion,
|
|
|
|
Major: "1",
|
|
|
|
|
|
|
|
Minor: "7",
|
|
|
|
|
|
|
|
GoVersion: runtime.Version(),
|
|
|
|
|
|
|
|
Compiler: runtime.Compiler,
|
|
|
|
|
|
|
|
Platform: fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH),
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
TillerVersion: tversion.GetVersionProto(),
|
|
|
|
TillerVersion: tversion.GetVersionProto(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
valuesToRender, err := chartutil.ToRenderValuesCaps(chart, chart.Values, options, caps)
|
|
|
|
valuesToRender, err := chartutil.ToRenderValuesCaps(chart, chart.Values, options, caps)
|
|
|
|