values

package
v0.0.0-...-3e220e4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeValues

func MergeValues(specValues map[string]interface{}, helmChart *helmchart.Chart) map[string]interface{}

MergeValues returns map of input values and input chart default values

Types

type ListOptions

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

ListOptions represents struct for filters for searching in values kubernetes resources

func NewOptions

func NewOptions(filterMap map[string]string) *ListOptions

NewOptions for init struct by map

func (*ListOptions) Filter

func (options *ListOptions) Filter(list []*ValuesRef) []*ValuesRef

Filter and every other func adapted from: https://play.golang.org/p/o5JmVAL9RXL

type ValueTemplate

type ValueTemplate struct {
	ValuesRef  []*ValuesRef
	Values     map[string]interface{}
	ValuesMap  map[string]string
	ValueFiles []string
	// contains filtered or unexported fields
}

ValueTemplate represents struct for possible value inputs

func New

func New(instance *helmv1alpha1.Release, logger logr.Logger, k8sClient client.Client) *ValueTemplate

New represents initialization of internal struct for managing helm values

func (*ValueTemplate) ManageValues

func (hv *ValueTemplate) ManageValues() (map[string]interface{}, error)

ManageValues represents parsing of a map with interfaces into HelmValueTemplate struct

type ValuesRef

type ValuesRef struct {
	Ref    *helmv1alpha1.Values `json:"Ref" filter:"ref"`
	Parent string               `json:"Parent" filter:"parent"`
	Key    string               `json:"Key" filter:"key"`
}

ValuesRef represents struct for filtering values kubernetes resources by json tag

Jump to

Keyboard shortcuts

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