helm
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/riftonix/daggerverse/helm@v1.0.0
Entrypoint
Return Type
Helm !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
imageRegistry | String | "docker.io" | Helm image registry |
imageRepository | String | "alpine/helm" | Helm image repositroy |
imageTag | String | "3.18.6" | Helm image tag |
user | String | "65532" | Helm image user |
Example
dagger -m github.com/riftonix/daggerverse/helm@220b827edb86d3305c6a3dbcfae4571acd894233 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 🔗
Dagger-ci helm module
authInRegistry() 🔗
Authenticate with registry
Return Type
Helm !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
username | String ! | - | Registry username |
password | Secret ! | - | Registry password |
address | String | "docker.io" | Registry host |
Example
dagger -m github.com/riftonix/daggerverse/helm@220b827edb86d3305c6a3dbcfae4571acd894233 call \
auth-in-registry --username string --password env:MYSECRET
func (m *MyModule) Example(username string, password *dagger.Secret) *dagger.Helm {
return dag.
Helm().
AuthInRegistry(username, password)
}
@function
def example(username: str, password: dagger.Secret) -> dagger.Helm:
return (
dag.helm()
.auth_in_registry(username, password)
)
@func()
example(username: string, password: Secret): Helm {
return dag
.helm()
.authInRegistry(username, password)
}
container() 🔗
Return Type
Container !
Example
dagger -m github.com/riftonix/daggerverse/helm@220b827edb86d3305c6a3dbcfae4571acd894233 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() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | Helm chart host path |
strict | Boolean | false | Fail on lint warnings |
Example
dagger -m github.com/riftonix/daggerverse/helm@220b827edb86d3305c6a3dbcfae4571acd894233 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/riftonix/daggerverse/helm@220b827edb86d3305c6a3dbcfae4571acd894233 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)
}
push() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | Chart directory |
registry | String ! | - | Registry host |
repository | String | "" | Repository path |
version | String | "" | Set the version on the chart to this semver version |
username | String | "" | Registry username |
password | Secret | null | Registry password |
insecure | Boolean | false | Use insecure HTTP connections for the chart upload |
appVersion | String | "" | Set the appVersion on the chart to this version |
dependencyUpdate | Boolean | false | Update dependencies |
Example
dagger -m github.com/riftonix/daggerverse/helm@220b827edb86d3305c6a3dbcfae4571acd894233 call \
push --source DIR_PATH --registry string
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, registry string) string {
return dag.
Helm().
Push(ctx, source, registry)
}
@function
async def example(source: dagger.Directory, registry: str) -> str:
return await (
dag.helm()
.push(source, registry)
)
@func()
async example(source: Directory, registry: string): Promise<string> {
return dag
.helm()
.push(source, registry)
}
template() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | Helm chart directory |
values | File | null | Values.yaml file |
releaseName | String ! | "ci-release" | Release name |
Example
dagger -m github.com/riftonix/daggerverse/helm@220b827edb86d3305c6a3dbcfae4571acd894233 call \
template --source DIR_PATH --release-name string
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, releaseName string) string {
return dag.
Helm().
Template(ctx, source, releaseName)
}
@function
async def example(source: dagger.Directory, release_name: str) -> str:
return await (
dag.helm()
.template(source, release_name)
)
@func()
async example(source: Directory, releaseName: string): Promise<string> {
return dag
.helm()
.template(source, releaseName)
}