Dagger
Search

istio

This module handles the Istio version management.

Installation

dagger install github.com/adore-me/daggerverse/istio@f81faa47d17aec6572a74359b82f2b4904534d93

Entrypoint

Return Type
Istio !
Arguments
NameTypeDescription
configMapFile !ConfigMap (that stores istio current version) file path. Should be relative to the dir parameter.
Example
func (m *myModule) example(configMap *File) *Istio  {
	return dag.
			Istio(configMap)
}
@function
def example(config_map: dagger.File) -> dag.Istio:
	return (
		dag.istio(config_map)
	)
@func()
example(configMap: File): Istio {
	return dag
		.istio(configMap)
}

Types

Istio 🔗

latestVersion() 🔗

Return Type
String !
Example
dagger -m github.com/adore-me/daggerverse/istio@f81faa47d17aec6572a74359b82f2b4904534d93 call \
 --config-map file:path latest-version
func (m *myModule) example(ctx context.Context, configMap *File) string  {
	return dag.
			Istio(configMap).
			LatestVersion(ctx)
}
@function
async def example(config_map: dagger.File) -> str:
	return await (
		dag.istio(config_map)
		.latest_version()
	)
@func()
async example(configMap: File): Promise<string> {
	return dag
		.istio(configMap)
		.latestVersion()
}

localVersion() 🔗

Return Type
String !
Example
dagger -m github.com/adore-me/daggerverse/istio@f81faa47d17aec6572a74359b82f2b4904534d93 call \
 --config-map file:path local-version
func (m *myModule) example(ctx context.Context, configMap *File) string  {
	return dag.
			Istio(configMap).
			LocalVersion(ctx)
}
@function
async def example(config_map: dagger.File) -> str:
	return await (
		dag.istio(config_map)
		.local_version()
	)
@func()
async example(configMap: File): Promise<string> {
	return dag
		.istio(configMap)
		.localVersion()
}

isNewerVersion() 🔗

IsNewerVersion Check if the latest Istio version is newer than the local version

Example usage: dagger call –config-map=clusters/dev/istio-version.yaml is-new-version

Return Type
Boolean !
Example
dagger -m github.com/adore-me/daggerverse/istio@f81faa47d17aec6572a74359b82f2b4904534d93 call \
 --config-map file:path is-newer-version
func (m *myModule) example(ctx context.Context, configMap *File) bool  {
	return dag.
			Istio(configMap).
			IsNewerVersion(ctx)
}
@function
async def example(config_map: dagger.File) -> bool:
	return await (
		dag.istio(config_map)
		.is_newer_version()
	)
@func()
async example(configMap: File): Promise<boolean> {
	return dag
		.istio(configMap)
		.isNewerVersion()
}

updateCmVersion() 🔗

UpdateCmVersion Update the version in the ConfigMap file

Example usage: dagger call –cm-path=clusters/dev/istio-version.yaml update-version-cm

Return Type
String !
Example
dagger -m github.com/adore-me/daggerverse/istio@f81faa47d17aec6572a74359b82f2b4904534d93 call \
 --config-map file:path update-cm-version
func (m *myModule) example(ctx context.Context, configMap *File) string  {
	return dag.
			Istio(configMap).
			UpdateCmVersion(ctx)
}
@function
async def example(config_map: dagger.File) -> str:
	return await (
		dag.istio(config_map)
		.update_cm_version()
	)
@func()
async example(configMap: File): Promise<string> {
	return dag
		.istio(configMap)
		.updateCmVersion()
}