chartrenderer

package
v1.90.8 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 18 Imported by: 108

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory added in v1.8.0

type Factory interface {
	NewForConfig(config *rest.Config) (Interface, error)
}

Factory is a factory that is able to produce Interface.

func DefaultFactory added in v1.8.0

func DefaultFactory() Factory

DefaultFactory returns the default Factory.

type FactoryFunc added in v1.8.0

type FactoryFunc func(config *rest.Config) (Interface, error)

FactoryFunc implements the Factory interface.

func (FactoryFunc) NewForConfig added in v1.8.0

func (f FactoryFunc) NewForConfig(config *rest.Config) (Interface, error)

NewForConfig implements Factory.

type Interface

type Interface interface {
	RenderEmbeddedFS(embeddedFS embed.FS, chartPath, releaseName, namespace string, values interface{}) (*RenderedChart, error)
	RenderArchive(archive []byte, releaseName, namespace string, values interface{}) (*RenderedChart, error)
}

Interface is an interface for rendering Helm Charts from path, name, namespace and values.

func NewForConfig

func NewForConfig(cfg *rest.Config) (Interface, error)

NewForConfig creates a new ChartRenderer object. It requires a Kubernetes client as input which will be injected in the Tiller environment.

func NewWithServerVersion added in v1.6.0

func NewWithServerVersion(serverVersion *version.Info) Interface

NewWithServerVersion creates a new chart renderer with the given server version.

type RenderedChart

type RenderedChart struct {
	ChartName string
	Manifests []releaseutil.Manifest
}

RenderedChart holds a map of rendered templates file with template file name as key and rendered template as value.

func (*RenderedChart) AsSecretData added in v1.4.0

func (c *RenderedChart) AsSecretData() map[string][]byte

AsSecretData returns all rendered manifests that is capable for used as data of a secret

func (*RenderedChart) FileContent

func (c *RenderedChart) FileContent(filename string) string

FileContent returns explicitly the content of the provided <filename>.

func (*RenderedChart) Files

func (c *RenderedChart) Files() map[string]map[string]string

Files returns a map representing the files associated with the RenderedChart. The map has the file names as keys and their content represented as a nested map. The nested map has keys in the format of strings.ToLower(manifest.Head.Kind+"/"+manifest.Head.Metadata.Name) and values as the content of the corresponding file.

func (*RenderedChart) Manifest

func (c *RenderedChart) Manifest() []byte

Manifest returns the manifest of the rendered chart as byte array.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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