charts

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SnapshotVersionV1     = "v1"
	SnapshotVersionV2     = "v2"
	SnapshotVersionV3     = "v3"
	SnapshotVersionLatest = SnapshotVersionV3
)

Variables

This section is empty.

Functions

func DefaultSnapshotFilePath added in v0.0.5

func DefaultSnapshotFilePath(chartPath, valuesFile string) string

func SetLogger added in v0.0.5

func SetLogger(slogr *slog.Logger)

func SnapshotFileName added in v0.3.1

func SnapshotFileName(valuesFile string) string

func SnapshotFilePath added in v0.0.5

func SnapshotFilePath(dir, valuesFile string) string

Types

type ChartSnapshotter added in v0.3.1

type ChartSnapshotter struct {
	HelmTemplateCmdOptions HelmTemplateCmdOptions
	SnapshotConfig         v1alpha1.SnapshotConfig
	SnapshotFile           string
	SnapshotVersion        string
	DiffContextLineN       int
	UpdateSnapshot         bool
	HeaderVersion          string
}

func (*ChartSnapshotter) Snap added in v0.3.1

func (o *ChartSnapshotter) Snap(ctx context.Context) (result *SnapshotResult, err error)

type HelmTemplateCmdOptions

type HelmTemplateCmdOptions struct {
	HelmPath       string
	ReleaseName    string
	Namespace      string
	Chart          string
	ValuesFile     string
	AdditionalArgs []string
}

func (*HelmTemplateCmdOptions) Args added in v0.0.8

func (o *HelmTemplateCmdOptions) Args() []string

func (*HelmTemplateCmdOptions) Execute

func (o *HelmTemplateCmdOptions) Execute(ctx context.Context) ([]byte, error)

type SnapshotResult added in v0.3.1

type SnapshotResult struct {
	Match          bool
	FailureMessage string
}

Jump to

Keyboard shortcuts

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