chart

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CHANGELOGTEMPLATE contains helm chart changelog information
	CHANGELOGTEMPLATE string = `` /* 618-byte string literal not displayed */

	// MINORVERSION defines minor version identifier
	MINORVERSION = "minor"
	// MAJORVERSION defines major version identifier
	MAJORVERSION = "major"
	// PATCHVERSION defines patch version identifier
	PATCHVERSION = "patch"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	File             string // [target] Define file to update
	Key              string // [target] Define Key to update
	Name             string // [source][condition][target] Define Chart name path like "stable/chart"
	URL              string // [source][condition] Define the chart location
	Value            string // [target] Define value to set
	Version          string // [source][condition]
	VersionIncrement string // [target] Define the rule to incremental the Chart version, accept a list of rules
	AppVersion       bool   // [target] Boolean that define we must update the App Version
}

Chart describe helm repository metadata

func (*Chart) Changelog

func (c *Chart) Changelog(name string) (string, error)

Changelog return any information available for a helm chart

func (*Chart) Condition

func (c *Chart) Condition(source string) (bool, error)

Condition check if a specific chart version exist

func (*Chart) ConditionFromSCM

func (c *Chart) ConditionFromSCM(source string, scm scm.Scm) (bool, error)

ConditionFromSCM returns an error because it's not supported

func (*Chart) Source

func (c *Chart) Source(workingDir string) (string, error)

Source return the latest version

func (*Chart) Target

func (c *Chart) Target(source string, dryRun bool) (changed bool, err error)

Target updates helm chart, it receives the default source value and a dryrun flag then return if it changed something or failed

func (*Chart) TargetFromSCM

func (c *Chart) TargetFromSCM(source string, scm scm.Scm, dryRun bool) (
	changed bool, files []string, message string, err error)

TargetFromSCM updates helm chart then push changed to a scm, it receives the default source value and dryrun flag then return if it changed something or failed

func (*Chart) UpdateMetadata

func (c *Chart) UpdateMetadata(metadataFilename string, dryRun bool) error

UpdateMetadata updates a metadata if necessary and it bump the ChartVersion

func (*Chart) UpdateRequirements

func (c *Chart) UpdateRequirements(lockFilename string) (bool, error)

UpdateRequirements test if we are updating the file requirements.yaml if it's the case then we also have to delete and recreate the file requirements.lock

func (*Chart) ValidateTarget

func (c *Chart) ValidateTarget() error

ValidateTarget ensure that target required parameter are set

Jump to

Keyboard shortcuts

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