values

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

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 added in v1.0.6

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, appCatalog v1alpha1.AppCatalog) (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, appCatalog v1alpha1.AppCatalog) (map[string]string, error)

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

func (*Values) MergeSecretData

func (v *Values) MergeSecretData(ctx context.Context, app v1alpha1.App, appCatalog v1alpha1.AppCatalog) (map[string][]byte, error)

MergeSecretData merges the data from the catalog, app and user secretss 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