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@d6c2921242bfd9b7c6f1a98cbc2dc58e07ad96ac

Entrypoint

Return Type
ChartUpdater !
Example
dagger -m github.com/BCIT-LTC/daggerverse/chart-updater@d6c2921242bfd9b7c6f1a98cbc2dc58e07ad96ac 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() 🔗

Update the Helm chart version and app version in Chart.yaml and values file.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
jsonStringString !-No description provided
chartYamlUrlString !-No description provided
githubTokenSecret !-Github Token
usernameString !-Github Username
repositoryUrlString !-Repository URL
branchString !-Branch Name
valuesFileString !-Values file path
Example
dagger -m github.com/BCIT-LTC/daggerverse/chart-updater@d6c2921242bfd9b7c6f1a98cbc2dc58e07ad96ac call \
 updatechart --json-string string --chart-yaml-url string --github-token env:MYSECRET --username string --repository-url string --branch string --values-file string
func (m *MyModule) Example(ctx context.Context, jsonString string, chartYamlUrl string, githubToken *dagger.Secret, username string, repositoryUrl string, branch string, valuesFile string)   {
	return dag.
			ChartUpdater().
			Updatechart(ctx, jsonString, chartYamlUrl, githubToken, username, repositoryUrl, branch, valuesFile)
}
@function
async def example(json_string: str, chart_yaml_url: str, github_token: dagger.Secret, username: str, repository_url: str, branch: str, values_file: str) -> None:
	return await (
		dag.chart_updater()
		.updatechart(json_string, chart_yaml_url, github_token, username, repository_url, branch, values_file)
	)
@func()
async example(jsonString: string, chartYamlUrl: string, githubToken: Secret, username: string, repositoryUrl: string, branch: string, valuesFile: string): Promise<void> {
	return dag
		.chartUpdater()
		.updatechart(jsonString, chartYamlUrl, githubToken, username, repositoryUrl, branch, valuesFile)
}