realhelmdeployer

package
v0.113.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeoutCheckpointHelmBeforeInstallingRelease = "helm deployer: before installing release"
	TimeoutCheckpointHelmBeforeUpgradingRelease  = "helm deployer: before upgrading release"
	TimeoutCheckpointHelmBeforeDeletingRelease   = "helm deployer: before deleting release"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfigGetter

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

func (*ClientConfigGetter) ClientConfig

func (c *ClientConfigGetter) ClientConfig() (*rest.Config, error)

func (*ClientConfigGetter) ConfigAccess

func (c *ClientConfigGetter) ConfigAccess() clientcmd.ConfigAccess

func (*ClientConfigGetter) Namespace

func (c *ClientConfigGetter) Namespace() (string, bool, error)

func (*ClientConfigGetter) RawConfig

func (c *ClientConfigGetter) RawConfig() (clientcmdapi.Config, error)

type HelmSecretManager

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

The HelmSecretManager manages secrets which are created by Helm to manage releases.

func NewHelmSecretManager

func NewHelmSecretManager(targetRestConfig *rest.Config, defaultNamespace string, logf func(string, ...interface{})) (*HelmSecretManager, error)

NewHelmSecretManager creates a new helm secret manager.

func (*HelmSecretManager) DeletePendingReleaseSecrets

func (m *HelmSecretManager) DeletePendingReleaseSecrets(ctx context.Context, releaseName string) error

DeletePendingReleaseSecrets lists all secrets that are created for the given Helm release which are in a pending state. The secret latest (the greatest version) release version is being deleted.

type ManifestObject

type ManifestObject struct {
	APIVersion string               `json:"apiVersion"`
	Kind       string               `json:"kind"`
	ObjectMeta types.NamespacedName `json:"metadata"`

	// Items are needed for lists, e.g. ConfigMapLists.
	// Caution! The pointer is necessary to distinguish nil (ordinary object) from empty list.
	Items *[]ManifestObject `json:"items"`
}

type RealHelmDeployer

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

func NewRealHelmDeployer

func NewRealHelmDeployer(ch *chart.Chart, providerConfig *helmv1alpha1.ProviderConfiguration, targetRestConfig *rest.Config,
	clientset kubernetes.Interface, di *lsv1alpha1.DeployItem) *RealHelmDeployer

func (*RealHelmDeployer) Deploy

func (c *RealHelmDeployer) Deploy(ctx context.Context) error

func (*RealHelmDeployer) GetManagedResourcesStatus

func (c *RealHelmDeployer) GetManagedResourcesStatus(ctx context.Context) ([]managedresource.ManagedResourceStatus, error)

func (*RealHelmDeployer) Undeploy

func (c *RealHelmDeployer) Undeploy(ctx context.Context) error

Jump to

Keyboard shortcuts

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