helmtemplate

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package helmtemplate provides functions for templating helm charts

Index

Constants

View Source
const (
	// HelmChartYamlName is the name of Helm's chart yaml.
	HelmChartYamlName = "Chart.yaml"
	// HelmValuesYamlName is hte name fo the file that holds default Helm chart
	// values inside the template directory.
	HelmValuesYamlName = "values.yaml"
	// HelmTemplateDirectoryName is the name of the directory that stores
	// Kubernetes resources inside a chart.
	HelmTemplateDirectoryName = "templates"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsValidationFailedError

func IsValidationFailedError(err error) bool

IsValidationFailedError asserts validationFailedError.

Types

type BuildInfo

type BuildInfo struct {
	// Branch is the name of the branch we're building.
	Branch string
	// SHA is the SHA-1 tag of the commit we are building for.
	SHA string
	// Version is the version of the commit being built.
	Version string
	// AppVersion is the version read from pkg/project/project.go if it
	// exists or set to the same value as Version otherwise.
	AppVersion string
}

BuildInfo holds information concerning the current build.

type Config

type Config struct {
	Fs afero.Fs

	ChartDir            string
	Branch              string
	Sha                 string
	Version             string
	AppVersion          string
	SkipAppVersionCheck bool
}

Config holds configuration for building a new TemplateHelmChartTask

type TemplateHelmChartTask

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

TemplateHelmChartTask is used to run a template-helm-chart command

func NewTemplateHelmChartTask

func NewTemplateHelmChartTask(config Config) (*TemplateHelmChartTask, error)

NewTemplateHelmChartTask creates a new TemplateHelmChartTask

func (TemplateHelmChartTask) Run

func (t TemplateHelmChartTask) Run(validate, tagBuild bool) error

Run templates the chart's Chart.yaml and templates/deployment.yaml.

func (TemplateHelmChartTask) String

func (t TemplateHelmChartTask) String() string

Jump to

Keyboard shortcuts

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