helmtest

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureHelm

func ConfigureHelm(cfg *rest.Config) (*action.Configuration, error)

func Enabled

func Enabled(isEnabled bool) enabled

func ReplaceTemplate

func ReplaceTemplate(
	tmpl Template,
	gitRepository *gittest.LocalGitRepository,
) error

func WithDigest

func WithDigest(dig string) digest

func WithOCI

func WithOCI(enabled bool) oci

func WithPrivate

func WithPrivate(enabled bool) private

func WithProject

func WithProject(
	repo *gittest.LocalGitRepository,
	testProject string,
	testRoot string,
) projectOption

func WithProvider

func WithProvider(providerID cloud.ProviderID) provider

Types

type Environment

type Environment struct {
	ChartServer Server

	V1Digest string
	// contains filtered or unexported fields
}

func NewHelmEnvironment

func NewHelmEnvironment(t testing.TB, opts ...Option) (*Environment, error)

NewHelmEnvironment creates Helm chart archives and starts either and oci or yaml based Helm repository.

func (Environment) Close

func (env Environment) Close()

type OciRegistry

type OciRegistry struct {
	Server *ocitest.Registry
}

func (*OciRegistry) Addr

func (r *OciRegistry) Addr() string

func (*OciRegistry) Close

func (r *OciRegistry) Close()

func (*OciRegistry) URL

func (r *OciRegistry) URL() string

type Option

type Option interface {
	Apply(*options)
}

type Server

type Server interface {
	// base URL of form http://ipaddr:port with no trailing slash
	URL() string
	Addr() string
	Close()
}

type Template

type Template struct {
	TestProjectPath         string
	RelativeReleaseFilePath string
	Name                    string
	RepoURL                 string
}

Jump to

Keyboard shortcuts

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