Dagger
Search

chart-updater

This module has been generated via dagger init and serves as a reference to
basic 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/BCIT-LTC/daggerverse/chart-updater@1b3d130a20202c5bb1142d6ff83fbfea22a15c39

Entrypoint

Return Type
ChartUpdater !
Example
dagger -m github.com/BCIT-LTC/daggerverse/chart-updater@1b3d130a20202c5bb1142d6ff83fbfea22a15c39 call \
func (m *MyModule) Example() *dagger.ChartUpdater  {
	return dag.
			ChartUpdater()
}
@function
def example() -> dagger.ChartUpdater:
	return (
		dag.chart_updater()
	)
@func()
example(): ChartUpdater {
	return dag
		.chartUpdater()
}

Types

ChartUpdater 🔗

updatechart() 🔗

Main entrypoint: Update the Helm chart version and app version in Chart.yaml and values file. Raises QueryError if fetching or incrementing chart version fails.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
valuesJsonScalar !-JSON object with all values to update, e.g. '{"app_name": "my-app", "app_version": "1.2.3", "image": {"tag": "1.2.3"}}'
githubTokenSecret !-GitHub token for authentication with GitHub (used for clone/push)
helmRepoUrlString !-Git repository URL containing the Helm chart(s), e.g. 'https://github.com/org/repo.git'
branchString !-Git branch to update, e.g. 'main'
valuesFileString !"values.yaml"Relative path to the values file to update (default: 'values.yaml'), e.g. 'values.yaml' or 'charts/my-app/values.yaml'
chartPathString !"."Relative path to the chart directory containing Chart.yaml (default: '.'), e.g. '.' or 'charts/my-app'
Example
dagger -m github.com/BCIT-LTC/daggerverse/chart-updater@1b3d130a20202c5bb1142d6ff83fbfea22a15c39 call \
 updatechart --github-token env:MYSECRET --helm-repo-url string --branch string --values-file string --chart-path string
func (m *MyModule) Example(ctx context.Context, valuesJson , githubToken *dagger.Secret, helmRepoUrl string, branch string, valuesFile string, chartPath string)   {
	return dag.
			ChartUpdater().
			Updatechart(ctx, valuesJson, githubToken, helmRepoUrl, branch, valuesFile, chartPath)
}
@function
async def example(values_json: , github_token: dagger.Secret, helm_repo_url: str, branch: str, values_file: str, chart_path: str) -> None:
	return await (
		dag.chart_updater()
		.updatechart(values_json, github_token, helm_repo_url, branch, values_file, chart_path)
	)
@func()
async example(valuesJson: , githubToken: Secret, helmRepoUrl: string, branch: string, valuesFile: string, chartPath: string): Promise<void> {
	return dag
		.chartUpdater()
		.updatechart(valuesJson, githubToken, helmRepoUrl, branch, valuesFile, chartPath)
}