template

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 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 Fetcher

type Fetcher struct {
	ApiVersion   string    `yaml:"apiVersion"`
	Kind         string    `yaml:"kind"`
	Metadata     *Metadata `yaml:"metadata"`
	ChartName    string    `yaml:"chartName"`
	ChartVersion string    `yaml:"chartVersion"`
	IndexName    string    `yaml:"indexName,omitempty"`
	IndexUrl     string    `yaml:"indexUrl,omitempty"`
}

func NewFetcher

func NewFetcher(name, chartName, chartVersion, indexName, indexUrl string) *Fetcher

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"`
}

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"`
	ChartVersion     string    `yaml:"chartVersion"`
	ReleaseName      string    `yaml:"releaseName"`
	ReleaseNamespace string    `yaml:"releaseNamespace"`
	ValuesFile       string    `yaml:"valuesFile"`
}

func NewTemplator

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

Jump to

Keyboard shortcuts

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