helmreleaser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	GitHub *GitHubArchive `yaml:"github,omitempty"`
}

type ChartServer

type ChartServer struct {
	Apply       bool   `yaml:"apply"`
	KubeContext string `yaml:"kubeContext,omitempty"`
	Filename    string `yaml:"filename,omitempty"`
}

type GitHubArchive

type GitHubArchive struct {
	Owner string `yaml:"owner"`
	Name  string `yaml:"name"`
}

type GitRemote

type GitRemote struct {
	Owner string
	Name  string
}

type HelmReleaser

type HelmReleaser struct {
	ChartVersion string   `yaml:"chartVersion,omitempty"`
	AppVersion   string   `yaml:"appVersion,omitempty"`
	Description  string   `yaml:"description,omitempty"`
	Home         string   `yaml:"home,omitempty"`
	Icon         string   `yaml:"icon,omitempty"`
	Maintainers  []string `yaml:"maintainers,omitempty"`
	Name         string   `yaml:"name,omitempty"`
	Sources      []string `yaml:"sources,omitempty"`

	Images []Image `yaml:"images,omitempty"`

	Snapshot Snapshot `yaml:"snapshot,omitempty"`

	Archive *Archive `yaml:"archive,omitempty"`

	HelmRepo *HelmRepo `yaml:"helmRepo,omitempty"`
}

func CreateDefault

func CreateDefault() *HelmReleaser

func ReadFromFile

func ReadFromFile(filename string) (*HelmReleaser, error)

func (HelmReleaser) CreateContext

func (h HelmReleaser) CreateContext(dir string, scmToken string) (*HelmReleaserContext, error)

CreateContext will create a context that can be used to render The dir param should be the path in the git repo, not the temp directory

func (*HelmReleaser) MergeValuesFromChart

func (h *HelmReleaser) MergeValuesFromChart(filename string) error

func (HelmReleaser) Render

func (h HelmReleaser) Render(context HelmReleaserContext, dir string) error

func (HelmReleaser) RenderString

func (h HelmReleaser) RenderString(context HelmReleaserContext, in string) (string, error)

func (*HelmReleaser) WriteToFile

func (h *HelmReleaser) WriteToFile(filename string, overwrite bool) error

type HelmReleaserContext

type HelmReleaserContext struct {
	Major int64
	Minor int64
	Patch int64

	Tag string

	GitRemote GitRemote
	// contains filtered or unexported fields
}

func (HelmReleaserContext) GetChangelog

func (c HelmReleaserContext) GetChangelog() string

type HelmRepo

type HelmRepo struct {
	ChartServer *ChartServer `yaml:"chartServer,omitempty"`
}

type Image

type Image struct {
	ID            string `yaml:"id"`
	ImageKey      string `yaml:"imageKey,omitempty"`
	TagKey        string `yaml:"tagKey,omitempty"`
	ImageTemplate string `yaml:"imageTemplate,omitempty"`
	TagTemplate   string `yaml:"tagTemplate,omitempty"`
}

type Snapshot

type Snapshot struct {
	Images []Image `yaml:"images,omitempty"`
}

Jump to

Keyboard shortcuts

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