timoni icon indicating copy to clipboard operation
timoni copied to clipboard

Local module reference fails when applying multi-clusters

Open b4nst opened this issue 3 months ago • 0 comments

When applying a bundle containing a local module reference with a multi cluster runtime, only the first cluster passes. The second one always fails with this kind of error:

11:55AM ERR module not found at path /var/folders/vl/j712bqm55gd754rr5tdm8bxm0000gn/T/timoni3063563812/gcp-eu/examples/redis

A simple test can be run in this repository by creating this bundle and runtime at the root of the repo:

// bundle.cue
bundle: {
	apiVersion: "v1alpha1"
	name:       "debug"
	instances: {
		redis: {
			module: url: "file://./examples/redis/"
			namespace: "default"
			values: maxmemory: 256
		}
	}
}
// runtime.cue
runtime: {
	apiVersion: "v1alpha1"
	name:       "production"
	clusters: {
		"first": {
			kubeContext: "local"
			group:       "test1"
		}
		"second": {
			kubeContext: "local"
			group:       "test2"
		}
	}
}
timoni bundle apply -f bundle.cue --runtime runtime.cue --diff

b4nst avatar Mar 09 '24 20:03 b4nst