helm

package
v0.3.91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 11 Imported by: 23 modules, 16 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package manifests contains the HelmGenerator implementation of the Generator interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHelmGeneratorWithObjectTransformer

func NewHelmGeneratorWithObjectTransformer(fsys fs.FS, chartPath string, _ client.Client, transformer manifests.ObjectTransformer) (manifests.TransformableGenerator, error)

Create a new HelmGenerator with an ObjectTransformer attached (further transformers can be attached to the returned generator object).

func NewHelmGeneratorWithParameterTransformer

func NewHelmGeneratorWithParameterTransformer(fsys fs.FS, chartPath string, _ client.Client, transformer manifests.ParameterTransformer) (manifests.TransformableGenerator, error)

Create a new HelmGenerator with a ParameterTransformer attached (further transformers can be attached to the returned generator object).

func NewTransformableHelmGenerator

func NewTransformableHelmGenerator(fsys fs.FS, chartPath string, _ client.Client) (manifests.TransformableGenerator, error)

Create a new HelmGenerator as TransformableGenerator.

Types

type HelmGenerator

type HelmGenerator struct {
	// contains filtered or unexported fields
}

HelmGenerator is a Generator implementation that basically renders a given Helm chart. A few restrictions apply to the provided Helm chart: it must not contain any subcharts, some template functions are not supported, some bultin variables are not supported, and hooks are processed in a slightly different fashion. Note: HelmGenerator's Generate() method expects local client, client and reconciler name to be set in the passed context; see: Context.WithLocalClient(), Context.WithClient() and Context.WithReconcilerName() in package pkg/component.

func NewHelmGenerator

func NewHelmGenerator(fsys fs.FS, chartPath string, _ client.Client) (*HelmGenerator, error)

An empty chartPath will be treated like ".".

func (*HelmGenerator) Generate

func (g *HelmGenerator) Generate(ctx context.Context, namespace string, name string, parameters types.Unstructurable) ([]client.Object, error)

Generate resource descriptors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL