template

package
v0.0.0-...-06e2803 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseValuesFile

func ParseValuesFile(in []byte) (map[interface{}]interface{}, error)

ParseValuesFile parses the content of values.yaml

Types

type Chart

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

Chart represents everything in a Helm chart

func New

func New(chartInfo *ChartInfo, values map[interface{}]interface{}, files map[string][]byte) *Chart

New generates a new Chart object

func (*Chart) Clone

func (c *Chart) Clone() (*Chart, error)

Clone gives a deep copy of the chart

func (*Chart) CreateManifests

func (c *Chart) CreateManifests(release Release) (map[string][]byte, []byte, error)

CreateManifests generates the Kubernetes manifests and NOTES.txt output

func (*Chart) MergeValues

func (c *Chart) MergeValues(newValues map[interface{}]interface{})

MergeValues allows to overwrite values and merge them with the existing ones

type ChartInfo

type ChartInfo struct {
	APIVersion  string `yaml:"apiVersion"`
	APPVersion  string `yaml:"appVersion"`
	Description string `yaml:"description"`
	Name        string `yaml:"name"`
	Version     string `yaml:"version"`
}

ChartInfo describes the content of chart.yaml

func ParseChartFile

func ParseChartFile(in []byte) (*ChartInfo, error)

ParseChartFile parses the content of Chart.yaml

type Release

type Release struct {
	Name      string
	Service   string
	Namespace string
}

Release describes a helmet release

func NewRelease

func NewRelease(name, namespace string) Release

NewRelease gives a new release object for a given name and namespace

Jump to

Keyboard shortcuts

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