dp

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaVersion         = "0.1"
	DollarSchema          = "https://schema.intel.com/catalog.orchestrator/0.1/schema"
	DefaultFilePermission = 0600
)

Variables

This section is empty.

Functions

func GenerateDefaultParameters

func GenerateDefaultParameters(values string) ([]*catalogv3.ParameterTemplate, error)

GenerateDefaultParametersFromYaml generates parameter templates from a values.yaml file. It does this by recursively parsing the YAML. It builds up names in dotted notations and also supplies the default value. If a default value is problematic (e.g., too long, contains templating syntax, or has newlines), the value is determined to be too complex and is not included in the parameters. For some charts, like Bitnami Charts, this may result in a very large number of parameters, so this should be used with care.

func GenerateDefaultParametersFromYaml

func GenerateDefaultParametersFromYaml(parent string, yamlContent map[interface{}]interface{}) ([]*catalogv3.ParameterTemplate, error)

GenerateDefaultParametersFromYaml is the helper function for GenerateDefaultParameters. It works on a yaml tree that has already been parsed into a map[interface{}]interface{}.

func GenerateDeploymentPackage

func GenerateDeploymentPackage(helm helm.HelmInfo, valuesFile string, outputDir string, namespace string, includeAuth bool, generateDefaultValues bool, generateDefaultParameters bool) error

GenerateDeploymentPackage generates a deployment package from a Helm chart.

func GenerateDeploymentPackageResources

func GenerateDeploymentPackageResources(helm helm.HelmInfo, values string, namespace string, includeAuth bool) (string, *catalogv3.DeploymentPackage, *catalogv3.Application, *catalogv3.Registry, error)

func GetValuesFromChart

func GetValuesFromChart(helm helm.HelmInfo) (string, error)

GetValuesFromChart uses the values.yaml from a chart, performing validation to ensure it is valid YAML.

func GetValuesFromFile

func GetValuesFromFile(valuesFile string) (string, error)

GetValuesFromFile reads a values.yaml file and returns its content as a string. It performs validation to ensure the content is valid YAML.

Types

type GenerationError

type GenerationError struct {
	Helm helm.HelmInfo
	Msg  string
	Err  error
}

func (*GenerationError) Error

func (e *GenerationError) Error() string

func (*GenerationError) Unwrap

func (e *GenerationError) Unwrap() error

func (*GenerationError) Verbose

func (e *GenerationError) Verbose(wr io.Writer)

type InputError

type InputError struct {
	Helm      helm.HelmInfo
	InputFile string
	Msg       string
	Err       error
}

func (*InputError) Error

func (e *InputError) Error() string

func (*InputError) Unwrap

func (e *InputError) Unwrap() error

func (*InputError) Verbose

func (e *InputError) Verbose(wr io.Writer)

type OutputError

type OutputError struct {
	Helm       helm.HelmInfo
	OutputDir  string
	OutputFile string
	Msg        string
	Err        error
}

func (*OutputError) Error

func (e *OutputError) Error() string

func (*OutputError) Unwrap

func (e *OutputError) Unwrap() error

func (*OutputError) Verbose

func (e *OutputError) Verbose(wr io.Writer)

Jump to

Keyboard shortcuts

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