helm

package
v1.77.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertJSONToYAML

func ConvertJSONToYAML(jsonBytes []byte) ([]byte, error)

func ConvertYAMLToJSON

func ConvertYAMLToJSON(yamlBytes []byte) ([]byte, error)

func GetModulesImages added in v1.39.0

func GetModulesImages() map[string]interface{}

func ManifestStringToUnstructed added in v1.49.0

func ManifestStringToUnstructed(doc string) *unstructured.Unstructured

Types

type Config

type Config struct {
	RenderError     error
	ValuesValidator *values_validation.ValuesValidator
	// contains filtered or unexported fields
}

func SetupHelmConfig

func SetupHelmConfig(values string) *Config

func (*Config) ApplyOpenAPIDefaults added in v1.76.11

func (hec *Config) ApplyOpenAPIDefaults()

ApplyOpenAPIDefaults applies OpenAPI schema defaults (config-values.yaml and values.yaml) to the current module root values, mimicking the defaulting that addon-operator performs in production before rendering module Helm templates.

It is opt-in: existing tests are unaffected unless they call this method.

Defaults are applied to the module root values (e.g. "istio"), because the module OpenAPI schemas are rooted at the bare module values object.

func (*Config) HelmRender

func (hec *Config) HelmRender(options ...Option)

func (*Config) KubernetesGlobalResource

func (hec *Config) KubernetesGlobalResource(kind, name string) object_store.KubeObject

func (*Config) KubernetesResource

func (hec *Config) KubernetesResource(kind, namespace, name string) object_store.KubeObject

func (Config) ValuesGet

func (hec Config) ValuesGet(path string) library.KubeResult

func (*Config) ValuesSet

func (hec *Config) ValuesSet(path string, value interface{})

func (*Config) ValuesSetFromYaml

func (hec *Config) ValuesSetFromYaml(path, value string)

func (*Config) ValuesSetFromYamlWithOpenAPIDefaults added in v1.76.11

func (hec *Config) ValuesSetFromYamlWithOpenAPIDefaults(path, value string)

ValuesSetFromYamlWithOpenAPIDefaults sets the values at the given path from YAML and then applies OpenAPI schema defaults to the module root values. It is a convenience wrapper around ValuesSetFromYaml + ApplyOpenAPIDefaults.

type Option added in v1.38.0

type Option func(options *configOptions)

func WithFilteredRenderOutput added in v1.38.0

func WithFilteredRenderOutput(m map[string]string, filters []string) Option

WithFilteredRenderOutput same as WithRenderOutput but filters files which contain `filter` pattern

func WithRenderOutput added in v1.38.0

func WithRenderOutput(m map[string]string) Option

WithRenderOutput output rendered files in a format: $filename: $renderedTemplates (splitted with ---)

Jump to

Keyboard shortcuts

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