nelm

package
v1.17.11 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonOptions

type CommonOptions struct {
	genericclioptions.ConfigFlags

	HistoryMax  int32
	Timeout     time.Duration
	HelmDriver  string
	KubeContext string
}

type DefaultNelmActions

type DefaultNelmActions struct{}

func (*DefaultNelmActions) ChartRender

func (*DefaultNelmActions) ReleaseGet

func (d *DefaultNelmActions) ReleaseGet(ctx context.Context, name, namespace string, opts action.ReleaseGetOptions) (*action.ReleaseGetResultV1, error)

func (*DefaultNelmActions) ReleaseInstall

func (d *DefaultNelmActions) ReleaseInstall(ctx context.Context, name, namespace string, opts action.ReleaseInstallOptions) error

func (*DefaultNelmActions) ReleaseList

func (*DefaultNelmActions) ReleaseUninstall

func (d *DefaultNelmActions) ReleaseUninstall(ctx context.Context, name, namespace string, opts action.ReleaseUninstallOptions) error

type NelmActions

type NelmActions interface {
	ReleaseGet(ctx context.Context, name, namespace string, opts action.ReleaseGetOptions) (*action.ReleaseGetResultV1, error)
	ReleaseInstall(ctx context.Context, name, namespace string, opts action.ReleaseInstallOptions) error
	ReleaseUninstall(ctx context.Context, name, namespace string, opts action.ReleaseUninstallOptions) error
	ReleaseList(ctx context.Context, opts action.ReleaseListOptions) (*action.ReleaseListResultV1, error)
	ChartRender(ctx context.Context, opts action.ChartRenderOptions) (*action.ChartRenderResultV2, error)
}

type NelmClient

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

func NewNelmClient

func NewNelmClient(opts *CommonOptions, logger *log.Logger, labels map[string]string) *NelmClient

func (*NelmClient) DeleteRelease

func (c *NelmClient) DeleteRelease(releaseName string) error

func (*NelmClient) GetAnnotations

func (c *NelmClient) GetAnnotations() map[string]string

GetAnnotations returns the annotations for testing purposes

func (*NelmClient) GetReleaseChecksum

func (c *NelmClient) GetReleaseChecksum(releaseName string) (string, error)

func (*NelmClient) GetReleaseLabels

func (c *NelmClient) GetReleaseLabels(releaseName, labelName string) (string, error)

GetReleaseLabels returns a specific label value from the release.

func (*NelmClient) GetReleaseValues

func (c *NelmClient) GetReleaseValues(releaseName string) (utils.Values, error)

func (*NelmClient) IsReleaseExists

func (c *NelmClient) IsReleaseExists(releaseName string) (bool, error)

func (*NelmClient) LastReleaseStatus

func (c *NelmClient) LastReleaseStatus(releaseName string) (string, string, error)

func (*NelmClient) ListReleasesNames

func (c *NelmClient) ListReleasesNames() ([]string, error)

func (*NelmClient) Render

func (c *NelmClient) Render(releaseName, modulePath string, valuesPaths, setValues []string, releaseLabels map[string]string, namespace string, debug bool) (string, error)

func (*NelmClient) UpgradeRelease

func (c *NelmClient) UpgradeRelease(releaseName, modulePath string, valuesPaths []string, setValues []string, releaseLabels map[string]string, namespace string) error

func (*NelmClient) WithExtraAnnotations

func (c *NelmClient) WithExtraAnnotations(annotations map[string]string)

func (*NelmClient) WithExtraLabels

func (c *NelmClient) WithExtraLabels(labels map[string]string)

func (*NelmClient) WithLogLabels

func (c *NelmClient) WithLogLabels(logLabels map[string]string)

type NelmLogger

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

func NewNelmLogger

func NewNelmLogger(logger *log.Logger) *NelmLogger

func (*NelmLogger) AcceptLevel

func (n *NelmLogger) AcceptLevel(_ context.Context, _ nelmlog.Level) bool

func (*NelmLogger) BlockContentWidth

func (n *NelmLogger) BlockContentWidth(_ context.Context) int

func (*NelmLogger) Debug

func (n *NelmLogger) Debug(ctx context.Context, format string, a ...interface{})

func (*NelmLogger) DebugPop

func (n *NelmLogger) DebugPop(_ context.Context, _ string)

func (*NelmLogger) DebugPush

func (n *NelmLogger) DebugPush(ctx context.Context, _, format string, a ...interface{})

func (*NelmLogger) EnrichWithLabels

func (n *NelmLogger) EnrichWithLabels(labelsMaps ...map[string]string) *NelmLogger

func (*NelmLogger) Error

func (n *NelmLogger) Error(ctx context.Context, format string, a ...interface{})

func (*NelmLogger) ErrorPop

func (n *NelmLogger) ErrorPop(_ context.Context, _ string)

func (*NelmLogger) ErrorPush

func (n *NelmLogger) ErrorPush(ctx context.Context, _, format string, a ...interface{})

func (*NelmLogger) Info

func (n *NelmLogger) Info(ctx context.Context, format string, a ...interface{})

func (*NelmLogger) InfoBlock

func (n *NelmLogger) InfoBlock(ctx context.Context, opts nelmlog.BlockOptions, fn func())

func (*NelmLogger) InfoBlockErr

func (n *NelmLogger) InfoBlockErr(ctx context.Context, opts nelmlog.BlockOptions, fn func() error) error

func (*NelmLogger) InfoPop

func (n *NelmLogger) InfoPop(_ context.Context, _ string)

func (*NelmLogger) InfoPush

func (n *NelmLogger) InfoPush(ctx context.Context, _, format string, a ...interface{})

func (*NelmLogger) Level

func (n *NelmLogger) Level(_ context.Context) nelmlog.Level

func (*NelmLogger) SetLevel

func (n *NelmLogger) SetLevel(_ context.Context, lvl nelmlog.Level)

func (*NelmLogger) Trace

func (n *NelmLogger) Trace(ctx context.Context, format string, a ...interface{})

func (*NelmLogger) TracePop

func (n *NelmLogger) TracePop(_ context.Context, _ string)

func (*NelmLogger) TracePush

func (n *NelmLogger) TracePush(ctx context.Context, _, format string, a ...interface{})

func (*NelmLogger) TraceStruct

func (n *NelmLogger) TraceStruct(ctx context.Context, obj interface{}, format string, a ...interface{})

func (*NelmLogger) Warn

func (n *NelmLogger) Warn(ctx context.Context, format string, a ...interface{})

func (*NelmLogger) WarnPop

func (n *NelmLogger) WarnPop(_ context.Context, _ string)

func (*NelmLogger) WarnPush

func (n *NelmLogger) WarnPush(ctx context.Context, _, format string, a ...interface{})

func (*NelmLogger) With

func (n *NelmLogger) With(args ...any) *NelmLogger

type SafeNelmActions added in v1.17.7

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

SafeNelmActions wraps NelmActions and provides panic recovery for all action calls.

func (*SafeNelmActions) ChartRender added in v1.17.7

func (s *SafeNelmActions) ChartRender(ctx context.Context, opts action.ChartRenderOptions) (result *action.ChartRenderResultV2, err error)

func (*SafeNelmActions) ReleaseGet added in v1.17.7

func (s *SafeNelmActions) ReleaseGet(ctx context.Context, name, namespace string, opts action.ReleaseGetOptions) (result *action.ReleaseGetResultV1, err error)

func (*SafeNelmActions) ReleaseInstall added in v1.17.7

func (s *SafeNelmActions) ReleaseInstall(ctx context.Context, name, namespace string, opts action.ReleaseInstallOptions) (err error)

func (*SafeNelmActions) ReleaseList added in v1.17.7

func (s *SafeNelmActions) ReleaseList(ctx context.Context, opts action.ReleaseListOptions) (result *action.ReleaseListResultV1, err error)

func (*SafeNelmActions) ReleaseUninstall added in v1.17.7

func (s *SafeNelmActions) ReleaseUninstall(ctx context.Context, name, namespace string, opts action.ReleaseUninstallOptions) (err error)

Jump to

Keyboard shortcuts

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