helm
Crane is a tool for managing container images
Installation
dagger install github.com/opopops/daggerverse/helm@v1.4.1
Entrypoint
Return Type
Helm !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
image | String ! | "cgr.dev/chainguard/wolfi-base:latest" | wolfi-base image |
version | String ! | "latest" | Helm version |
user | String ! | "65532" | Image user |
container | Container | null | No description provided |
Example
dagger -m github.com/opopops/daggerverse/helm@faf836499fb8b1b047e1d5b0fb72b49257ee0473 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 module
container() 🔗
Returns container
Return Type
Container !
Example
dagger -m github.com/opopops/daggerverse/helm@faf836499fb8b1b047e1d5b0fb72b49257ee0473 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
Name | Type | Default Value | Description |
---|---|---|---|
path | Directory ! | - | Path to the chart |
strict | Boolean ! | false | Fail on lint warnings |
quiet | Boolean ! | false | Print only warnings and errors |
Example
dagger -m github.com/opopops/daggerverse/helm@faf836499fb8b1b047e1d5b0fb72b49257ee0473 call \
--image string --version string --user string lint --path DIR_PATH --strict boolean --quiet boolean
func (m *MyModule) Example(ctx context.Context, image string, version string, user string, path *dagger.Directory, strict bool, quiet bool) string {
return dag.
Helm(image, version, user).
Lint(ctx, path, strict, quiet)
}
@function
async def example(image: str, version: str, user: str, path: dagger.Directory, strict: bool, quiet: bool) -> str:
return await (
dag.helm(image, version, user)
.lint(path, strict, quiet)
)
@func()
async example(image: string, version: string, user: string, path: Directory, strict: boolean, quiet: boolean): Promise<string> {
return dag
.helm(image, version, user)
.lint(path, strict, quiet)
}
package() 🔗
Packages a chart into a versioned chart archive file
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
path | Directory ! | - | Path to the chart |
appVersion | String ! | "" | Set the appVersion on the chart to this version |
version | String ! | "" | Set the version on the chart to this semver version |
dependencyUpdate | Boolean ! | false | Update dependencies |
Example
dagger -m github.com/opopops/daggerverse/helm@faf836499fb8b1b047e1d5b0fb72b49257ee0473 call \
--image string --version string --user string package --path DIR_PATH --app-version string --version string --dependency-update boolean
func (m *MyModule) Example(image string, version string, user string, path *dagger.Directory, appVersion string, version1 string, dependencyUpdate bool) *dagger.File {
return dag.
Helm(image, version, user).
Package(path, appVersion, version1, dependencyUpdate)
}
@function
def example(image: str, version: str, user: str, path: dagger.Directory, app_version: str, version1: str, dependency_update: bool) -> dagger.File:
return (
dag.helm(image, version, user)
.package(path, app_version, version1, dependency_update)
)
@func()
example(image: string, version: string, user: string, path: Directory, appVersion: string, version1: string, dependencyUpdate: boolean): File {
return dag
.helm(image, version, user)
.package(path, appVersion, version1, dependencyUpdate)
}
packagePush() 🔗
Packages a chart an push it to the registry
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
path | Directory ! | - | Path to the chart |
registry | String ! | - | Registry host |
username | String ! | "" | Registry username |
password | Secret | null | Registry password |
plainHttp | Boolean ! | false | Use insecure HTTP connections for the chart upload |
appVersion | String ! | "" | Set the appVersion on the chart to this version |
version | String ! | "" | Set the version on the chart to this semver version |
dependencyUpdate | Boolean ! | false | Update dependencies |
Example
dagger -m github.com/opopops/daggerverse/helm@faf836499fb8b1b047e1d5b0fb72b49257ee0473 call \
--image string --version string --user string package-push --path 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, path *dagger.Directory, registry string, username string, plainHttp bool, appVersion string, version1 string, dependencyUpdate bool) string {
return dag.
Helm(image, version, user).
PackagePush(ctx, path, registry, username, plainHttp, appVersion, version1, dependencyUpdate)
}
@function
async def example(image: str, version: str, user: str, path: 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(path, registry, username, plain_http, app_version, version1, dependency_update)
)
@func()
async example(image: string, version: string, user: string, path: Directory, registry: string, username: string, plainHttp: boolean, appVersion: string, version1: string, dependencyUpdate: boolean): Promise<string> {
return dag
.helm(image, version, user)
.packagePush(path, registry, username, plainHttp, appVersion, version1, dependencyUpdate)
}
push() 🔗
Verify that the chart is well-formed
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
chart | File ! | - | Path to the chart |
registry | String ! | - | Registry host |
username | String ! | "" | Registry username |
password | Secret | null | Registry password |
plainHttp | Boolean ! | false | Use insecure HTTP connections for the chart upload |
Example
dagger -m github.com/opopops/daggerverse/helm@faf836499fb8b1b047e1d5b0fb72b49257ee0473 call \
--image string --version string --user string push --chart file:path --registry string --username string --plain-http boolean
func (m *MyModule) Example(ctx context.Context, image string, version string, user string, chart *dagger.File, registry string, username string, plainHttp bool) string {
return dag.
Helm(image, version, user).
Push(ctx, chart, registry, username, plainHttp)
}
@function
async def example(image: str, version: str, user: str, chart: dagger.File, registry: str, username: str, plain_http: bool) -> str:
return await (
dag.helm(image, version, user)
.push(chart, registry, username, plain_http)
)
@func()
async example(image: string, version: string, user: string, chart: File, registry: string, username: string, plainHttp: boolean): Promise<string> {
return dag
.helm(image, version, user)
.push(chart, registry, username, plainHttp)
}
template() 🔗
Render chart templates locally and display the output
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
path | Directory ! | - | Path to the chart |
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@faf836499fb8b1b047e1d5b0fb72b49257ee0473 call \
--image string --version string --user string template --path DIR_PATH
func (m *MyModule) Example(ctx context.Context, image string, version string, user string, path *dagger.Directory) string {
return dag.
Helm(image, version, user).
Template(ctx, path)
}
@function
async def example(image: str, version: str, user: str, path: dagger.Directory) -> str:
return await (
dag.helm(image, version, user)
.template(path)
)
@func()
async example(image: string, version: string, user: string, path: Directory): Promise<string> {
return dag
.helm(image, version, user)
.template(path)
}
withLint() 🔗
Verify that the chart is well-formed (for chaining)
Return Type
Helm !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
path | Directory ! | - | Path to the chart |
strict | Boolean ! | false | Fail on lint warnings |
quiet | Boolean ! | false | Print only warnings and errors |
Example
dagger -m github.com/opopops/daggerverse/helm@faf836499fb8b1b047e1d5b0fb72b49257ee0473 call \
--image string --version string --user string with-lint --path DIR_PATH --strict boolean --quiet boolean
func (m *MyModule) Example(image string, version string, user string, path *dagger.Directory, strict bool, quiet bool) *dagger.Helm {
return dag.
Helm(image, version, user).
WithLint(path, strict, quiet)
}
@function
def example(image: str, version: str, user: str, path: dagger.Directory, strict: bool, quiet: bool) -> dagger.Helm:
return (
dag.helm(image, version, user)
.with_lint(path, strict, quiet)
)
@func()
example(image: string, version: string, user: string, path: Directory, strict: boolean, quiet: boolean): Helm {
return dag
.helm(image, version, user)
.withLint(path, strict, quiet)
}
withRegistryAuth() 🔗
Authenticate with registry
Return Type
Helm !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
username | String ! | - | Registry username |
secret | Secret ! | - | Registry password |
address | String ! | "docker.io" | Registry host |
Example
dagger -m github.com/opopops/daggerverse/helm@faf836499fb8b1b047e1d5b0fb72b49257ee0473 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)
}