Documentation
¶
Index ¶
- Constants
- func GenerateDefaultParameters(values string) ([]*catalogv3.ParameterTemplate, error)
- func GenerateDefaultParametersFromYaml(parent string, yamlContent map[interface{}]interface{}) ([]*catalogv3.ParameterTemplate, error)
- func GenerateDeploymentPackage(helm helm.HelmInfo, valuesFile string, outputDir string, namespace string, ...) error
- func GenerateDeploymentPackageResources(helm helm.HelmInfo, values string, namespace string, includeAuth bool) (string, *catalogv3.DeploymentPackage, *catalogv3.Application, ...)
- func GetValuesFromChart(helm helm.HelmInfo) (string, error)
- func GetValuesFromFile(valuesFile string) (string, error)
- type GenerationError
- type InputError
- type OutputError
Constants ¶
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 GetValuesFromChart ¶
GetValuesFromChart uses the values.yaml from a chart, performing validation to ensure it is valid YAML.
func GetValuesFromFile ¶
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 ¶
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 ¶
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)