istio
This module handles the Istio version management.
Installation
dagger install github.com/adore-me/daggerverse/istio@f81faa47d17aec6572a74359b82f2b4904534d93
Entrypoint
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
func (m *myModule) example(configMap *File) *Istio {
return dag.
Istio(configMap)
}
Types
Istio π
latestVersion() π
Return Type
String !
Example
func (m *myModule) example(ctx context.Context, configMap *File) string {
return dag.
Istio(configMap).
LatestVersion(ctx)
}
localVersion() π
Return Type
String !
Example
func (m *myModule) example(ctx context.Context, configMap *File) string {
return dag.
Istio(configMap).
LocalVersion(ctx)
}
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
func (m *myModule) example(ctx context.Context, configMap *File) bool {
return dag.
Istio(configMap).
IsNewerVersion(ctx)
}
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
func (m *myModule) example(ctx context.Context, configMap *File) string {
return dag.
Istio(configMap).
UpdateCmVersion(ctx)
}