helm
Helm is the package manager for Kubernetes
Installation
dagger install github.com/opopops/daggerverse/helm@v1.6.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 |
chart | File | null | The chart archive |
dockerConfig | File | null | Docker config file |
Example
dagger -m github.com/opopops/daggerverse/helm@3aac7fd10f4fdb5cb8854b468046583692fc4444 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@3aac7fd10f4fdb5cb8854b468046583692fc4444 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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | Chart directory |
strict | Boolean | false | Fail on lint warnings |
mute | Boolean | false | Print only warnings and errors |
Example
dagger -m github.com/opopops/daggerverse/helm@3aac7fd10f4fdb5cb8854b468046583692fc4444 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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | Chart directory |
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@3aac7fd10f4fdb5cb8854b468046583692fc4444 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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | Chart directory |
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@3aac7fd10f4fdb5cb8854b468046583692fc4444 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
Name | Type | Default Value | Description |
---|---|---|---|
registry | String ! | - | Registry host |
chart | File | null | Chart archive |
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@3aac7fd10f4fdb5cb8854b468046583692fc4444 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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | 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@3aac7fd10f4fdb5cb8854b468046583692fc4444 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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | Chart directory |
strict | Boolean | false | Fail on lint warnings |
mute | Boolean | false | Print only warnings and errors |
Example
dagger -m github.com/opopops/daggerverse/helm@3aac7fd10f4fdb5cb8854b468046583692fc4444 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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | Chart directory |
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@3aac7fd10f4fdb5cb8854b468046583692fc4444 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
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@3aac7fd10f4fdb5cb8854b468046583692fc4444 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)
}