Dagger
Search

helm

Helm is the package manager for Kubernetes

Installation

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

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@70eb51a0df98d0d870320512cb2cf00bf050adde call \
 --image string --version string --user string
func (m *MyModule) Example(image string, version string, user string) *dagger.Helm  {
	return dag.
			Helm(image, version, user)
}
@function
def example(image: str, version: str, user: str, ) -> dagger.Helm:
	return (
		dag.helm(image, version, user)
	)
@func()
example(image: string, version: string, user: string, ): Helm {
	return dag
		.helm(image, version, user)
}

Types

Helm 🔗

Helm

container() 🔗

Returns container

Return Type
Container !
Example
dagger -m github.com/opopops/daggerverse/helm@70eb51a0df98d0d870320512cb2cf00bf050adde call \
 --image string --version string --user string container
func (m *MyModule) Example(image string, version string, user string) *dagger.Container  {
	return dag.
			Helm(image, version, user).
			Container()
}
@function
def example(image: str, version: str, user: str, ) -> dagger.Container:
	return (
		dag.helm(image, version, user)
		.container()
	)
@func()
example(image: string, version: string, user: string, ): Container {
	return dag
		.helm(image, version, user)
		.container()
}

lint() 🔗

Verify that the chart is well-formed

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Chart directory

strictBoolean !false

Fail on lint warnings

quietBoolean !false

Print only warnings and errors

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

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@70eb51a0df98d0d870320512cb2cf00bf050adde call \
 --image string --version string --user string package --source DIR_PATH --app-version string --version string --dependency-update boolean
func (m *MyModule) Example(image string, version string, user string, source *dagger.Directory, appVersion string, version1 string, dependencyUpdate bool) *dagger.File  {
	return dag.
			Helm(image, version, user).
			Package(source, appVersion, version1, dependencyUpdate)
}
@function
def example(image: str, version: str, user: str, source: dagger.Directory, app_version: str, version1: str, dependency_update: bool) -> dagger.File:
	return (
		dag.helm(image, version, user)
		.package(source, app_version, version1, dependency_update)
	)
@func()
example(image: string, version: string, user: string, source: Directory, appVersion: string, version1: string, dependencyUpdate: boolean): File {
	return dag
		.helm(image, version, user)
		.package(source, appVersion, version1, dependencyUpdate)
}

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@70eb51a0df98d0d870320512cb2cf00bf050adde call \
 --image string --version string --user string package-push --source DIR_PATH --registry string --username string --plain-http boolean --app-version string --version string --dependency-update boolean
func (m *MyModule) Example(ctx context.Context, image string, version string, user string, source *dagger.Directory, registry string, username string, plainHttp bool, appVersion string, version1 string, dependencyUpdate bool) string  {
	return dag.
			Helm(image, version, user).
			PackagePush(ctx, source, registry, username, plainHttp, appVersion, version1, dependencyUpdate)
}
@function
async def example(image: str, version: str, user: str, source: dagger.Directory, registry: str, username: str, plain_http: bool, app_version: str, version1: str, dependency_update: bool) -> str:
	return await (
		dag.helm(image, version, user)
		.package_push(source, registry, username, plain_http, app_version, version1, dependency_update)
	)
@func()
async example(image: string, version: string, user: string, source: Directory, registry: string, username: string, plainHttp: boolean, appVersion: string, version1: string, dependencyUpdate: boolean): Promise<string> {
	return dag
		.helm(image, version, user)
		.packagePush(source, registry, username, plainHttp, appVersion, version1, dependencyUpdate)
}

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@70eb51a0df98d0d870320512cb2cf00bf050adde call \
 --image string --version string --user string push --registry string --username string --plain-http boolean
func (m *MyModule) Example(ctx context.Context, image string, version string, user string, registry string, username string, plainHttp bool) string  {
	return dag.
			Helm(image, version, user).
			Push(ctx, registry, username, plainHttp)
}
@function
async def example(image: str, version: str, user: str, registry: str, username: str, plain_http: bool) -> str:
	return await (
		dag.helm(image, version, user)
		.push(registry, username, plain_http)
	)
@func()
async example(image: string, version: string, user: string, registry: string, username: string, plainHttp: boolean): Promise<string> {
	return dag
		.helm(image, version, user)
		.push(registry, username, plainHttp)
}

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@70eb51a0df98d0d870320512cb2cf00bf050adde call \
 --image string --version string --user string template --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, image string, version string, user string, source *dagger.Directory) string  {
	return dag.
			Helm(image, version, user).
			Template(ctx, source)
}
@function
async def example(image: str, version: str, user: str, source: dagger.Directory) -> str:
	return await (
		dag.helm(image, version, user)
		.template(source)
	)
@func()
async example(image: string, version: string, user: string, source: Directory): Promise<string> {
	return dag
		.helm(image, version, user)
		.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

quietBoolean !false

Print only warnings and errors

Example
dagger -m github.com/opopops/daggerverse/helm@70eb51a0df98d0d870320512cb2cf00bf050adde call \
 --image string --version string --user string with-lint --source DIR_PATH --strict boolean --quiet boolean
func (m *MyModule) Example(image string, version string, user string, source *dagger.Directory, strict bool, quiet bool) *dagger.Helm  {
	return dag.
			Helm(image, version, user).
			WithLint(source, strict, quiet)
}
@function
def example(image: str, version: str, user: str, source: dagger.Directory, strict: bool, quiet: bool) -> dagger.Helm:
	return (
		dag.helm(image, version, user)
		.with_lint(source, strict, quiet)
	)
@func()
example(image: string, version: string, user: string, source: Directory, strict: boolean, quiet: boolean): Helm {
	return dag
		.helm(image, version, user)
		.withLint(source, strict, quiet)
}

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@70eb51a0df98d0d870320512cb2cf00bf050adde call \
 --image string --version string --user string with-package --source DIR_PATH --app-version string --version string --dependency-update boolean
func (m *MyModule) Example(image string, version string, user string, source *dagger.Directory, appVersion string, version1 string, dependencyUpdate bool) *dagger.Helm  {
	return dag.
			Helm(image, version, user).
			WithPackage(source, appVersion, version1, dependencyUpdate)
}
@function
def example(image: str, version: str, user: str, source: dagger.Directory, app_version: str, version1: str, dependency_update: bool) -> dagger.Helm:
	return (
		dag.helm(image, version, user)
		.with_package(source, app_version, version1, dependency_update)
	)
@func()
example(image: string, version: string, user: string, source: Directory, appVersion: string, version1: string, dependencyUpdate: boolean): Helm {
	return dag
		.helm(image, version, user)
		.withPackage(source, appVersion, version1, dependencyUpdate)
}

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@70eb51a0df98d0d870320512cb2cf00bf050adde call \
 --image string --version string --user string with-registry-auth --username string --secret env:MYSECRET --address string
func (m *MyModule) Example(image string, version string, user string, username string, secret *dagger.Secret, address string) *dagger.Helm  {
	return dag.
			Helm(image, version, user).
			WithRegistryAuth(username, secret, address)
}
@function
def example(image: str, version: str, user: str, username: str, secret: dagger.Secret, address: str) -> dagger.Helm:
	return (
		dag.helm(image, version, user)
		.with_registry_auth(username, secret, address)
	)
@func()
example(image: string, version: string, user: string, username: string, secret: Secret, address: string): Helm {
	return dag
		.helm(image, version, user)
		.withRegistryAuth(username, secret, address)
}