hooks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hooks

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

Hooks represent the hooks that can be executed before and after the Helm Chart installation, it provides the user the ability to customize the process using shell scripts. These scripts can rely on local tools, like "kubectl", "oc" and others, while the Helm Charts are only using Kubernetes resources. Ideally these scripts are temporary measures, and should be replaced by Helm Chart related resources as soon as possible.

func NewHooks

func NewHooks(
	cfs *chartfs.ChartFS,
	dep *config.Dependency,
	stdout io.Writer,
	stderr io.Writer,
) *Hooks

NewHooks instantiates a hooks handler for the given ChartFS and Dependency.

func (*Hooks) PostDeploy

func (h *Hooks) PostDeploy(vals map[string]interface{}) error

PostDeploy executes the "post-deploy.sh" hook script with the given values.

func (*Hooks) PreDeploy

func (h *Hooks) PreDeploy(vals map[string]interface{}) error

PreDeploy executes the "pre-deploy.sh" hook script with the given values.

Jump to

Keyboard shortcuts

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