Dagger
Search

helm

Helm is the package manager for Kubernetes

Installation

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

Entrypoint

Return Type
Helm !
Arguments
NameTypeDefault ValueDescription
imageString "cgr.dev/chainguard/wolfi-base:latest"wolfi-base image
versionString "latest"Helm version
userString "65532"Image user
chartFile nullThe chart archive
dockerConfigFile nullDocker config file
Example
dagger -m github.com/opopops/daggerverse/helm@891fdcd3eecb58e2e9349b90358cdcfae9b893ed 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@891fdcd3eecb58e2e9349b90358cdcfae9b893ed 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 falseFail on lint warnings
muteBoolean falsePrint only warnings and errors
Example
dagger -m github.com/opopops/daggerverse/helm@891fdcd3eecb58e2e9349b90358cdcfae9b893ed 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 falseUpdate dependencies
Example
dagger -m github.com/opopops/daggerverse/helm@891fdcd3eecb58e2e9349b90358cdcfae9b893ed 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 nullRegistry password
plainHttpBoolean falseUse 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 falseUpdate dependencies
Example
dagger -m github.com/opopops/daggerverse/helm@891fdcd3eecb58e2e9349b90358cdcfae9b893ed 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 nullChart archive
usernameString ""Registry username
passwordSecret nullRegistry password
plainHttpBoolean falseUse insecure HTTP connections for the chart upload
Example
dagger -m github.com/opopops/daggerverse/helm@891fdcd3eecb58e2e9349b90358cdcfae9b893ed 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 ! ] nullOnly show manifests rendered from the given templates
set[String ! ] nullSet values on the command
setFile[String ! ] nullSet values from respective files specified via the command
setJson[File ! ] nullSet JSON values on the command
setLiteral[File ! ] nullSet a literal STRING value on the command
setString[File ! ] nullSet STRING values on the command line
Example
dagger -m github.com/opopops/daggerverse/helm@891fdcd3eecb58e2e9349b90358cdcfae9b893ed 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 falseFail on lint warnings
muteBoolean falsePrint only warnings and errors
Example
dagger -m github.com/opopops/daggerverse/helm@891fdcd3eecb58e2e9349b90358cdcfae9b893ed 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 falseUpdate dependencies
Example
dagger -m github.com/opopops/daggerverse/helm@891fdcd3eecb58e2e9349b90358cdcfae9b893ed 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@891fdcd3eecb58e2e9349b90358cdcfae9b893ed 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)
}