helm

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeoutCheckpointHelmStartReconcile            = "helm deployer: start reconcile"
	TimeoutCheckpointHelmStartProgressing          = "helm deployer: start progressing"
	TimeoutCheckpointHelmStartApplyFiles           = "helm deployer: start apply files"
	TimeoutCheckpointHelmStartDelete               = "helm deployer: start delete"
	TimeoutCheckpointHelmStartDeleting             = "helm deployer: start deleting"
	TimeoutCheckpointHelmBeforeReadinessCheck      = "helm deployer: before readiness check"
	TimeoutCheckpointHelmBeforeReadingExportValues = "helm deployer: before reading export values"
	TimeoutCheckpointHelmStartApplyManifests       = "helm deployer: start apply manifests"
	TimeoutCheckpointHelmStartCreateManifests      = "helm deployer: start create manifests"
	TimeoutCheckpointHelmDefaultReadinessChecks    = "helm deployer: default readiness checks"
	TimeoutCheckpointHelmCustomReadinessChecks     = "helm deployer: custom readiness checks"
)
View Source
const (
	Type lsv1alpha1.DeployItemType = "landscaper.gardener.cloud/helm"
	Name string                    = "helm.deployer.landscaper.gardener.cloud"
)

Variables

View Source
var HelmScheme = runtime.NewScheme()

Functions

func AddDeployerToManager

func AddDeployerToManager(lsUncachedClient, lsCachedClient, hostUncachedClient, hostCachedClient client.Client,
	finishedObjectCache *utils.FinishedObjectCache,
	logger logging.Logger, lsMgr, hostMgr manager.Manager,
	config helmv1alpha1.Configuration, callerName string) error

AddDeployerToManager adds a new helm deployers to a controller manager.

func NewDeployItemBuilder

func NewDeployItemBuilder() *utils.DeployItemBuilder

NewDeployItemBuilder creates a new deployitem builder for helm deployitems

func NewDeployer

func NewDeployer(lsUncachedClient, lsCachedClient, hostUncachedClient, hostCachedClient client.Client,
	log logging.Logger,
	config helmv1alpha1.Configuration) (deployerlib.Deployer, error)

NewDeployer creates a new deployer that reconciles deploy items of type helm.

Types

type Helm

type Helm struct {
	Configuration helmv1alpha1.Configuration

	DeployItem            *lsv1alpha1.DeployItem
	Target                *lsv1alpha1.ResolvedTarget
	Context               *lsv1alpha1.Context
	ProviderConfiguration *helmv1alpha1.ProviderConfiguration
	ProviderStatus        *helmv1alpha1.ProviderStatus
	SharedCache           cache.Cache

	TargetKubeClient client.Client
	TargetRestConfig *rest.Config
	TargetClientSet  kubernetes.Interface
	// contains filtered or unexported fields
}

Helm is the internal representation of a DeployItem of Type Helm

func New

func New(lsUncachedClient, lsCachedClient, hostUncachedClient, hostCachedClient client.Client,
	helmconfig helmv1alpha1.Configuration,
	item *lsv1alpha1.DeployItem,
	rt *lsv1alpha1.ResolvedTarget,
	lsCtx *lsv1alpha1.Context,
	sharedCache cache.Cache) (*Helm, error)

New creates a new internal helm item

func (*Helm) ApplyFiles

func (h *Helm) ApplyFiles(ctx context.Context, filesForManifestDeployer, crdsForManifestDeployer map[string]string,
	exports map[string]interface{}, ch *chart.Chart) error

ApplyFiles applies the helm templated files to the target cluster.

func (*Helm) DeleteFiles

func (h *Helm) DeleteFiles(ctx context.Context) error

DeleteFiles deletes the managed resources from the target cluster.

func (*Helm) TargetClient

func (h *Helm) TargetClient(ctx context.Context) (*rest.Config, client.Client, kubernetes.Interface, error)

func (*Helm) Template

func (h *Helm) Template(ctx context.Context) (map[string]string, map[string]string, map[string]interface{}, *chart.Chart, lserrors.LsError)

Template loads the specified helm chart and templates it with the given values.

func (*Helm) Writer

func (h *Helm) Writer() *read_write_layer.Writer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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