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, lsRestConfig *rest.Config, 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 // 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, lsRestConfig *rest.Config, helmconfig helmv1alpha1.Configuration, item *lsv1alpha1.DeployItem, rt *lsv1alpha1.ResolvedTarget, lsCtx *lsv1alpha1.Context) (*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 ¶
DeleteFiles deletes the managed resources from the target cluster.
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
Click to show internal directories.
Click to hide internal directories.