helm

package
v1.64.4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Upgrade(releaseName, releaseNamespace string, templates, values map[string]interface{}, debug bool, pr ...postrender.PostRenderer) error
	Delete(releaseName string) error
}

func NewClient

func NewClient(namespace string, options ...Option) (Client, error)

NewClient initializes helm client with secret backend storage in `namespace` arg namespace. Possible options: WithHistoryMax - set maximum stored releases. Default: 3 WithTimeout - timeout for helm upgrade/delete. Default: 15 seconds

type ClientMock

type ClientMock struct {
	DeleteMock mClientMockDelete

	UpgradeMock mClientMockUpgrade
	// contains filtered or unexported fields
}

ClientMock implements Client

func NewClientMock

func NewClientMock(t minimock.Tester) *ClientMock

NewClientMock returns a mock for Client

func (*ClientMock) Delete

func (mmDelete *ClientMock) Delete(releaseName string) (err error)

Delete implements Client

func (*ClientMock) DeleteAfterCounter

func (mmDelete *ClientMock) DeleteAfterCounter() uint64

DeleteAfterCounter returns a count of finished ClientMock.Delete invocations

func (*ClientMock) DeleteBeforeCounter

func (mmDelete *ClientMock) DeleteBeforeCounter() uint64

DeleteBeforeCounter returns a count of ClientMock.Delete invocations

func (*ClientMock) MinimockDeleteDone

func (m *ClientMock) MinimockDeleteDone() bool

MinimockDeleteDone returns true if the count of the Delete invocations corresponds the number of defined expectations

func (*ClientMock) MinimockDeleteInspect

func (m *ClientMock) MinimockDeleteInspect()

MinimockDeleteInspect logs each unmet expectation

func (*ClientMock) MinimockFinish

func (m *ClientMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*ClientMock) MinimockUpgradeDone

func (m *ClientMock) MinimockUpgradeDone() bool

MinimockUpgradeDone returns true if the count of the Upgrade invocations corresponds the number of defined expectations

func (*ClientMock) MinimockUpgradeInspect

func (m *ClientMock) MinimockUpgradeInspect()

MinimockUpgradeInspect logs each unmet expectation

func (*ClientMock) MinimockWait

func (m *ClientMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*ClientMock) Upgrade

func (mmUpgrade *ClientMock) Upgrade(releaseName string, releaseNamespace string, templates map[string]interface{}, values map[string]interface{}, debug bool, pr ...postrender.PostRenderer) (err error)

Upgrade implements Client

func (*ClientMock) UpgradeAfterCounter

func (mmUpgrade *ClientMock) UpgradeAfterCounter() uint64

UpgradeAfterCounter returns a count of finished ClientMock.Upgrade invocations

func (*ClientMock) UpgradeBeforeCounter

func (mmUpgrade *ClientMock) UpgradeBeforeCounter() uint64

UpgradeBeforeCounter returns a count of ClientMock.Upgrade invocations

type ClientMockDeleteExpectation

type ClientMockDeleteExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockDeleteExpectation specifies expectation struct of the Client.Delete

func (*ClientMockDeleteExpectation) Then

Then sets up Client.Delete return parameters for the expectation previously defined by the When method

type ClientMockDeleteParams

type ClientMockDeleteParams struct {
	// contains filtered or unexported fields
}

ClientMockDeleteParams contains parameters of the Client.Delete

type ClientMockDeleteResults

type ClientMockDeleteResults struct {
	// contains filtered or unexported fields
}

ClientMockDeleteResults contains results of the Client.Delete

type ClientMockUpgradeExpectation

type ClientMockUpgradeExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockUpgradeExpectation specifies expectation struct of the Client.Upgrade

func (*ClientMockUpgradeExpectation) Then

Then sets up Client.Upgrade return parameters for the expectation previously defined by the When method

type ClientMockUpgradeParams

type ClientMockUpgradeParams struct {
	// contains filtered or unexported fields
}

ClientMockUpgradeParams contains parameters of the Client.Upgrade

type ClientMockUpgradeResults

type ClientMockUpgradeResults struct {
	// contains filtered or unexported fields
}

ClientMockUpgradeResults contains results of the Client.Upgrade

type Option

type Option func(options *helmOptions)

func WithHistoryMax

func WithHistoryMax(historyMax int32) Option

func WithTimeout

func WithTimeout(timeout time.Duration) Option

Jump to

Keyboard shortcuts

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