helm

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package helm provides utilities for helm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionConfig added in v1.1.1

func ActionConfig(namespace string, debugLog action.DebugLog) *helm.Configuration

func ApplyManifest added in v1.1.1

func ApplyManifest(dynamicClient dynamic.Interface, mapper meta.RESTMapper, manifest string) error

func ApplyYAMLs added in v1.1.1

func ApplyYAMLs(
	dynamicClient dynamic.Interface,
	mapper meta.RESTMapper,
	manifests string,
	handler YAMLHandlerFunc,
	showFiles ...string,
) error

func DeleteManifest added in v1.1.1

func DeleteManifest(dynamicClient dynamic.Interface, mapper meta.RESTMapper, manifest string) error

func MergeMaps

func MergeMaps(a, b map[string]interface{}) map[string]interface{}

MergeMaps merges two maps together, with the values in the second map taking precedence.

func ReadFile added in v1.3.0

func ReadFile(filePath string) ([]byte, error)

ReadFile load a file from stdin, the local directory, or a remote file with a url.

func RenderChart

func RenderChart(
	templateClient *helm.Install,
	object metav1.Object,
	chartSource []byte,
	mc configurator.Configurator,
	client client.Client,
	scheme *runtime.Scheme,
	resolveValues func(metav1.Object, configurator.Configurator) (map[string]interface{}, error),
) (ctrl.Result, error)

RenderChart renders a chart and returns the rendered manifest

func TemplateClient added in v1.1.1

func TemplateClient(cfg *helm.Configuration, releaseName, namespace string, kubeVersion *chartutil.KubeVersion) *helm.Install

Types

type YAMLHandlerFunc added in v1.1.1

type YAMLHandlerFunc func(dynamicClient dynamic.Interface, mapper meta.RESTMapper, manifest string) error

Jump to

Keyboard shortcuts

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