Dagger
Search

helm

Helm is the package manager for Kubernetes

Installation

dagger install github.com/opopops/daggerverse/helm@v1.6.3

Entrypoint

Return Type
Helm !
Arguments
NameTypeDefault ValueDescription
imageString "cgr.dev/chainguard/wolfi-base:latest"wolfi-base image
versionString "3.18.2"Helm version
userString "65532"Image user
chartFile nullThe chart archive
dockerConfigFile nullDocker config file
Example
dagger -m github.com/opopops/daggerverse/helm@176934b26a09dda0b407963c639de9bc841063f4 call \
func (m *MyModule) Example() *dagger.Helm  {
	return dag.
			Helm()
}
@function
def example() -> dagger.Helm:
	return (
		dag.helm()
	)
@func()
example(): Helm {
	return dag
		.helm()
}

Types

Helm 🔗

Helm

container() 🔗

Returns container

Return Type
Container !
Example
dagger -m github.com/opopops/daggerverse/helm@176934b26a09dda0b407963c639de9bc841063f4 call \
 container
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			Helm().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.helm()
		.container()
	)
@func()
example(): Container {
	return dag
		.helm()
		.container()
}

lint() 🔗

Verify that the chart is well-formed

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Chart directory

strictBoolean false

Fail on lint warnings

muteBoolean false

Print only warnings and errors

Example
dagger -m github.com/opopops/daggerverse/helm@176934b26a09dda0b407963c639de9bc841063f4 call \
 lint --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Helm().
			Lint(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.helm()
		.lint(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.helm()
		.lint(source)
}

package() 🔗

Packages a chart into a versioned chart archive file

Return Type
File !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Chart directory

appVersionString ""

Set the appVersion on the chart to this version

versionString ""

Set the version on the chart to this semver version

dependencyUpdateBoolean false

Update dependencies

Example
dagger -m github.com/opopops/daggerverse/helm@176934b26a09dda0b407963c639de9bc841063f4 call \
 package --source DIR_PATH
func (m *MyModule) Example(source *dagger.Directory) *dagger.File  {
	return dag.
			Helm().
			Package(source)
}
@function
def example(source: dagger.Directory) -> dagger.File:
	return (
		dag.helm()
		.package(source)
	)
@func()
example(source: Directory): File {
	return dag
		.helm()
		.package(source)
}

packagePush() 🔗

Packages a chart an push it to the registry

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Chart directory

registryString !-

Registry host

usernameString ""

Registry username

passwordSecret null

Registry password

plainHttpBoolean false

Use insecure HTTP connections for the chart upload

appVersionString ""

Set the appVersion on the chart to this version

versionString ""

Set the version on the chart to this semver version

dependencyUpdateBoolean false

Update dependencies

Example
dagger -m github.com/opopops/daggerverse/helm@176934b26a09dda0b407963c639de9bc841063f4 call \
 package-push --source DIR_PATH --registry string
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, registry string) string  {
	return dag.
			Helm().
			PackagePush(ctx, source, registry)
}
@function
async def example(source: dagger.Directory, registry: str) -> str:
	return await (
		dag.helm()
		.package_push(source, registry)
	)
@func()
async example(source: Directory, registry: string): Promise<string> {
	return dag
		.helm()
		.packagePush(source, registry)
}

push() 🔗

Verify that the chart is well-formed

Return Type
String !
Arguments
NameTypeDefault ValueDescription
registryString !-

Registry host

chartFile null

Chart archive

usernameString ""

Registry username

passwordSecret null

Registry password

plainHttpBoolean false

Use insecure HTTP connections for the chart upload

Example
dagger -m github.com/opopops/daggerverse/helm@176934b26a09dda0b407963c639de9bc841063f4 call \
 push --registry string
func (m *MyModule) Example(ctx context.Context, registry string) string  {
	return dag.
			Helm().
			Push(ctx, registry)
}
@function
async def example(registry: str) -> str:
	return await (
		dag.helm()
		.push(registry)
	)
@func()
async example(registry: string): Promise<string> {
	return dag
		.helm()
		.push(registry)
}

template() 🔗

Render chart templates locally and display the output

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Chart directory

showOnly[String ! ] null

Only show manifests rendered from the given templates

set[String ! ] null

Set values on the command

setFile[String ! ] null

Set values from respective files specified via the command

setJson[File ! ] null

Set JSON values on the command

setLiteral[File ! ] null

Set a literal STRING value on the command

setString[File ! ] null

Set STRING values on the command line

Example
dagger -m github.com/opopops/daggerverse/helm@176934b26a09dda0b407963c639de9bc841063f4 call \
 template --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Helm().
			Template(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.helm()
		.template(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.helm()
		.template(source)
}

withLint() 🔗

Verify that the chart is well-formed (for chaining)

Return Type
Helm !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Chart directory

strictBoolean false

Fail on lint warnings

muteBoolean false

Print only warnings and errors

Example
dagger -m github.com/opopops/daggerverse/helm@176934b26a09dda0b407963c639de9bc841063f4 call \
 with-lint --source DIR_PATH
func (m *MyModule) Example(source *dagger.Directory) *dagger.Helm  {
	return dag.
			Helm().
			WithLint(source)
}
@function
def example(source: dagger.Directory) -> dagger.Helm:
	return (
		dag.helm()
		.with_lint(source)
	)
@func()
example(source: Directory): Helm {
	return dag
		.helm()
		.withLint(source)
}

withPackage() 🔗

Packages a chart into a versioned chart archive file (for chaining)

Return Type
Helm !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Chart directory

appVersionString ""

Set the appVersion on the chart to this version

versionString ""

Set the version on the chart to this semver version

dependencyUpdateBoolean false

Update dependencies

Example
dagger -m github.com/opopops/daggerverse/helm@176934b26a09dda0b407963c639de9bc841063f4 call \
 with-package --source DIR_PATH
func (m *MyModule) Example(source *dagger.Directory) *dagger.Helm  {
	return dag.
			Helm().
			WithPackage(source)
}
@function
def example(source: dagger.Directory) -> dagger.Helm:
	return (
		dag.helm()
		.with_package(source)
	)
@func()
example(source: Directory): Helm {
	return dag
		.helm()
		.withPackage(source)
}

withRegistryAuth() 🔗

Authenticate with registry

Return Type
Helm !
Arguments
NameTypeDefault ValueDescription
usernameString !-

Registry username

secretSecret !-

Registry password

addressString "docker.io"

Registry host

Example
dagger -m github.com/opopops/daggerverse/helm@176934b26a09dda0b407963c639de9bc841063f4 call \
 with-registry-auth --username string --secret env:MYSECRET
func (m *MyModule) Example(username string, secret *dagger.Secret) *dagger.Helm  {
	return dag.
			Helm().
			WithRegistryAuth(username, secret)
}
@function
def example(username: str, secret: dagger.Secret) -> dagger.Helm:
	return (
		dag.helm()
		.with_registry_auth(username, secret)
	)
@func()
example(username: string, secret: Secret): Helm {
	return dag
		.helm()
		.withRegistryAuth(username, secret)
}