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
NameTypeDefault ValueDescription
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)
}

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)
}