template

package
v0.7.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ChartName    string
	ChartVersion string
	IndexName    string
	IndexUrl     string
	ImageTags    map[string]string
}

type Helm

type Helm struct {
	ToolsDirectoryPath string
	Toolsets           *toolset.Toolsets
	Applications       map[string]*Application
	Overlay            string
	// contains filtered or unexported fields
}

func NewHelm

func NewHelm(logger logging.Logger, toolsDirectoryPath string, toolsets *toolset.Toolsets, crdName, overlay string) (*Helm, error)

func (*Helm) CleanUp

func (h *Helm) CleanUp() error

func (*Helm) GetDefaultValuesPath

func (h *Helm) GetDefaultValuesPath(appName string) string

func (*Helm) GetImageTags

func (h *Helm) GetImageTags(appName string) map[string]string

func (*Helm) PrepareTemplate added in v0.5.0

func (h *Helm) PrepareTemplate(appName, releaseName, releaseNamespace string, writeValues func(path string) error) error

func (*Helm) Template

func (h *Helm) Template(appName, resultfilepath string) error

type Kustomization

type Kustomization struct {
	APIVersion string   `yaml:"apiVersion"`
	Kind       string   `yaml:"kind"`
	Resources  []string `yaml:"resources,omitempty"`
	Generators []string `yaml:"generators,omitempty"`
}

type Metadata

type Metadata struct {
	Name string `yaml:"name,omitempty"`
}

type Namespace

type Namespace struct {
	ApiVersion string    `yaml:"apiVersion"`
	Kind       string    `yaml:"kind"`
	Metadata   *Metadata `yaml:"metadata"`
}

func NewNamespace

func NewNamespace(name string) *Namespace

type Templator

type Templator struct {
	APIVersion       string    `yaml:"apiVersion"`
	Kind             string    `yaml:"kind"`
	Metadata         *Metadata `yaml:"metadata"`
	ChartName        string    `yaml:"chartName,omitempty"`
	ReleaseName      string    `yaml:"releaseName,omitempty"`
	ReleaseNamespace string    `yaml:"releaseNamespace,omitempty"`
	ValuesFile       string    `yaml:"valuesFile,omitempty"`
}

func NewTemplator

func NewTemplator(name, chartName, releaseName, releaseNamespace string) *Templator

Jump to

Keyboard shortcuts

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