utils

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package utils provides utility functions for the Helm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeMaps added in v1.7.0

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

MergeMaps recursively merges the values of b into a copy of a, preferring the values from b.

func MergeVals

func MergeVals(
	helmFlagOpts values.Options,
	helmMapOpts map[string]string,
) (map[string]interface{}, error)

MergeVals merges all values from flag options ('helmFlagOpts') and auto-generated helm options based on environment ('helmMapOpts'), and returns a single map with all of these options merged. 'helmMapOpts' can be nil.

func SetupEverestDevChart

func SetupEverestDevChart(l *zap.SugaredLogger, path *string) (func(), error)

SetupEverestDevChart sets up the development chart for Everest. Returns a clean-up function that should be called when the chart is no longer needed.

func YAMLStringsToBytes

func YAMLStringsToBytes(strs []string) []byte

YAMLStringsToBytes converts a slice of YAML strings to a single byte slice.

Types

type ServerValues added in v1.7.0

type ServerValues struct {
	TLS     TLSValues     `json:"tls" yaml:"tls"`
	Service ServiceValues `json:"service" yaml:"service"`
}

ServerValues represents the configuration values for the Everest server.

type ServiceValues added in v1.7.0

type ServiceValues struct {
	Name string `json:"name" yaml:"name"`
	Port int    `json:"port" yaml:"port"`
}

ServiceValues represents the configuration values for the Everest service.

type TLSValues added in v1.7.0

type TLSValues struct {
	Enabled bool `json:"enabled" yaml:"enabled"`
}

TLSValues represents the configuration values for the Everest server TLS.

type Values added in v1.7.0

type Values struct {
	Server ServerValues `json:"server" yaml:"server"`
}

Values represents all the known configuration values for the Everest Helm chart. Fields may be added here as needed.

func ParseValues added in v1.7.0

func ParseValues(values map[string]interface{}) (*Values, error)

ParseValues parses the given values map into a Values struct.

Jump to

Keyboard shortcuts

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