helm

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConditionMet

func ConditionMet(condition string, values map[string]any) bool

traverse helm chart values to determine if condition is met

func IdentifyImportCandidates

func IdentifyImportCandidates(ctx context.Context, registries []registry.Registry, chartImageValuesMap ChartData, all bool) ([]registry.Image, error)

Converts data structure to pipeline parameters

func VersionsInRange added in v0.1.18

func VersionsInRange(r semver.Range, c Chart) ([]string, error)

Types

type Chart

type Chart struct {
	Name           string     `json:"name"`
	Version        string     `json:"version"`
	ValuesFilePath string     `json:"valuesFilePath"`
	Repo           repo.Entry `json:"repo"`
	Parent         *Chart
	Images         *Images `json:"images"`
	PlainHTTP      bool    `json:"plainHTTP"`
	DepsCount      int
}

func DependencyToChart added in v0.1.21

func DependencyToChart(d *chart.Dependency, p Chart) Chart

func (Chart) AddToHelmRepositoryFile

func (c Chart) AddToHelmRepositoryFile() (bool, error)

AddChartRepositoryToHelmRepositoryFile adds repository to Helm repository.yml to enable querying/pull

func (Chart) CountDependencies added in v0.1.8

func (c Chart) CountDependencies() (int, error)

func (Chart) LatestVersion

func (c Chart) LatestVersion() (string, error)

func (Chart) Locate

func (c Chart) Locate() (string, error)

func (Chart) Pull

func (c Chart) Pull() (string, error)

func (Chart) Push

func (c Chart) Push(registry string, insecure bool, plainHTTP bool) (string, error)

func (Chart) PushAndModify added in v0.1.8

func (c Chart) PushAndModify(registry string, insecure bool, plainHTTP bool) (string, error)

func (*Chart) Read

func (c *Chart) Read(update bool) (string, *chart.Chart, map[string]any, error)

func (Chart) ResolveVersion

func (c Chart) ResolveVersion() (string, error)

func (Chart) ResolveVersions added in v0.1.5

func (c Chart) ResolveVersions() ([]string, error)

func (Chart) Values

func (c Chart) Values() (map[string]any, error)

type ChartCollection

type ChartCollection struct {
	Charts []Chart `json:"charts"`
}

func (ChartCollection) SetupHelm

func (collection ChartCollection) SetupHelm(setters ...Option) (ChartCollection, error)

configures helm and pulls charts to local fs

type ChartData

type ChartData map[Chart]map[*registry.Image][]string

type ChartImportOption

type ChartImportOption struct {
	Registries      []registry.Registry
	ChartCollection *ChartCollection
	All             bool
	ModifyRegistry  bool
}

func (ChartImportOption) Run

func (opt ChartImportOption) Run(ctx context.Context, setters ...Option) error

type ChartOption

type ChartOption struct {
	ChartCollection *ChartCollection
	IdentifyImages  bool
	UseCustomValues bool
}

func (ChartOption) Run

func (co ChartOption) Run(ctx context.Context, setters ...Option) (ChartData, error)

type Images added in v0.1.6

type Images struct {
	Exclude []struct {
		Ref string `json:"ref"`
	} `json:"exclude"`
	ExcludeCopacetic []struct {
		Ref string `json:"ref"`
	} `json:"excludeCopacetic"`
	Modify []struct {
		From          string `json:"from"`
		FromValuePath string `json:"fromValuePath"`
		To            string `json:"to"`
	} `json:"modify"`
}

type Option

type Option func(*Options)

func K8SVersion

func K8SVersion(v string) Option

func Update

func Update(b bool) Option

func Verbose

func Verbose(b bool) Option

type Options

type Options struct {
	Verbose    bool
	Update     bool
	K8SVersion string
}

Jump to

Keyboard shortcuts

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