values

package
v6.15.6 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsParsingError

func IsParsingError(err error) bool

IsParsingError asserts parsingError.

Types

type Config

type Config struct {
	// Dependencies.
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger
}

Config represents the configuration used to create a new values service.

type Values

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

Values implements the values service.

func New

func New(config Config) (*Values, error)

New creates a new configured values service.

func (*Values) MergeAll

func (v *Values) MergeAll(ctx context.Context, app v1alpha1.App, catalog v1alpha1.Catalog) (map[string]interface{}, error)

MergeAll merges both configmap and secret values to produce a single set of values that can be passed to Helm.

func (*Values) MergeConfigMapData

func (v *Values) MergeConfigMapData(ctx context.Context, app v1alpha1.App, catalog v1alpha1.Catalog) (map[string]interface{}, error)

MergeConfigMapData merges the data from the catalog, app, user and extra config configmaps and returns a single set of values.

func (*Values) MergeSecretData

func (v *Values) MergeSecretData(ctx context.Context, app v1alpha1.App, catalog v1alpha1.Catalog) (map[string]interface{}, error)

MergeSecretData merges the data from the catalog, app, user and extra config secrets and returns a single set of values.

Jump to

Keyboard shortcuts

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