istio
This module handles the Istio version management.
Installation
dagger install github.com/adore-me/daggerverse/istio@12204ef122a72637186410f10b7efdf2ab82f7a5Entrypoint
Return Type
Istio !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| configMap | File ! | - | ConfigMap (that stores istio current version) file path. Should be relative to the dir parameter. |
Example
dagger -m github.com/adore-me/daggerverse/istio@12204ef122a72637186410f10b7efdf2ab82f7a5 call \
--config-map file:pathfunc (m *MyModule) Example(configMap *dagger.File) *dagger.Istio {
return dag.
Istio(configMap)
}@function
def example(config_map: dagger.File) -> dagger.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-versionfunc (m *MyModule) Example(ctx context.Context, configMap *dagger.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-versionfunc (m *MyModule) Example(ctx context.Context, configMap *dagger.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-versionfunc (m *MyModule) Example(ctx context.Context, configMap *dagger.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-cmfunc (m *MyModule) Example(ctx context.Context, configMap *dagger.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()
}