// Render renders templates of a provided Helm chart. Code ported from:
// https://github.com/helm/helm/blob/v3.4.2/cmd/helm/template.go
Render renders templates of a provided Helm chart.
// Render renders templates of a provided Helm chart . Code ported from : // https : // github . com / helm / helm / blob / v3 . 4 . 2 / cmd / helm / template . go
func Render(params RenderParameters) (map[string]string, error) {
	settings := cli.New()
	actionConfig, err := helmInit(settings, defaults.Namespace)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	client := action.NewInstall(actionConfig)
	client.Timeout = helmTimeout
	client.DryRun = true
	client.ReleaseName = "RELEASE-NAME"
	client.Replace = true 
	client.ClientOnly = true
	valueOpts := &values.Options{
		ValueFiles: params.Values,
		Values:     params.Set,
	}
	rel, err := runInstall(settings, client, params.Path, valueOpts)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var manifests bytes.Buffer
	fmt.Fprintln(&manifests, strings.TrimSpace(rel.Manifest))
	return releaseutil.SplitManifests(manifests.String()), nil
}
func Render ( params RenderParameters ) ( map [ string ] string , error ) { settings := cli . New ( ) actionConfig , err := helmInit ( settings , defaults . Namespace ) if err != nil { return nil , trace . Wrap ( err ) } client := action . NewInstall ( actionConfig ) client . Timeout = helmTimeout client . DryRun = true client . ReleaseName = " " client . Replace = true client . ClientOnly = true valueOpts := & values . Options { ValueFiles : params . Values , Values : params . Set , } rel , err := runInstall ( settings , client , params . Path , valueOpts ) if err != nil { return nil , trace . Wrap ( err ) } var manifests bytes . Buffer fmt . Fprintln ( & manifests , strings . TrimSpace ( rel . Manifest ) ) return releaseutil . SplitManifests ( manifests . String ( ) ) , nil }
Render renders templates of a provided Helm chart.
Render renders templates of a provided Helm chart .
// Skip the name check