Dagger
Search

helm

Copyright © 2024 Patrick Hermann patrick.hermann@sva.de

Installation

dagger install github.com/stuttgart-things/dagger/helm@v0.0.3

Entrypoint

Return Type
Helm !
Arguments
NameTypeDescription
helmContainerContainer helm container It need contain helm
Example
dagger -m github.com/stuttgart-things/dagger/helm@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
func (m *myModule) example() *Helm  {
	return dag.
			Helm()
}
@function
def example() -> dag.Helm:
	return (
		dag.helm()
	)
@func()
example(): Helm {
	return dag
		.helm()
}

Types

Helm 🔗

helmContainer() 🔗

Return Type
Container !
Example
dagger -m github.com/stuttgart-things/dagger/helm@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 helm-container
func (m *myModule) example() *Container  {
	return dag.
			Helm().
			HelmContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.helm()
		.helm_container()
	)
@func()
example(): Container {
	return dag
		.helm()
		.helmContainer()
}

getHelmContainer() 🔗

GetHelmContainer return the default image for helm

Return Type
Container !
Example
dagger -m github.com/stuttgart-things/dagger/helm@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 get-helm-container
func (m *myModule) example() *Container  {
	return dag.
			Helm().
			GetHelmContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.helm()
		.get_helm_container()
	)
@func()
example(): Container {
	return dag
		.helm()
		.getHelmContainer()
}

runPipeline() 🔗

RunPipeline orchestrates all pipeline steps

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/helm@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 run-pipeline --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory)   {
	return dag.
			Helm().
			RunPipeline(ctx, src)
}
@function
async def example(src: dagger.Directory) -> None:
	return await (
		dag.helm()
		.run_pipeline(src)
	)
@func()
async example(src: Directory): Promise<void> {
	return dag
		.helm()
		.runPipeline(src)
}

lint() 🔗

Lints a chart

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/helm@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 lint --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Helm().
			Lint(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.helm()
		.lint(src)
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.helm()
		.lint(src)
}

package() 🔗

Packages a chart into a versioned chart archive file (.tgz)

Return Type
File !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/helm@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 package --src DIR_PATH
func (m *myModule) example(src *Directory) *File  {
	return dag.
			Helm().
			Package(src)
}
@function
def example(src: dagger.Directory) -> dagger.File:
	return (
		dag.helm()
		.package(src)
	)
@func()
example(src: Directory): File {
	return dag
		.helm()
		.package(src)
}

push() 🔗

PUSH HELM CHART TO TARGET REGISTRY

Return Type
String !
Arguments
NameTypeDefault ValueDescription
registryString !"ghcr.io"No description provided
repositoryString !-No description provided
usernameString !-No description provided
passwordSecret !-No description provided
srcDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/helm@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 push --registry string --repository string --username string --password env:MYSECRET --src DIR_PATH
func (m *myModule) example(ctx context.Context, registry string, repository string, username string, password *Secret, src *Directory) string  {
	return dag.
			Helm().
			Push(ctx, registry, repository, username, password, src)
}
@function
async def example(registry: str, repository: str, username: str, password: dagger.Secret, src: dagger.Directory) -> str:
	return await (
		dag.helm()
		.push(registry, repository, username, password, src)
	)
@func()
async example(registry: string, repository: string, username: string, password: Secret, src: Directory): Promise<string> {
	return dag
		.helm()
		.push(registry, repository, username, password, src)
}

template() 🔗

Renders a chart as Kubernetes manifests

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/helm@5e2462c40d90fd83798810aea652d7e4bbfd784e call \
 template --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Helm().
			Template(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.helm()
		.template(src)
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.helm()
		.template(src)
}