Dagger
Search

istio

This module handles the Istio version management.

Installation

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

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@12204ef122a72637186410f10b7efdf2ab82f7a5 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@12204ef122a72637186410f10b7efdf2ab82f7a5 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@12204ef122a72637186410f10b7efdf2ab82f7a5 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()
}

returnUpdatedCm() 🔗

ReturnUpdatedCm Update the version in the ConfigMap file

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

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