Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local module reference fails when applying multi-clusters #364

Open
b4nst opened this issue Mar 9, 2024 · 0 comments
Open

Local module reference fails when applying multi-clusters #364

b4nst opened this issue Mar 9, 2024 · 0 comments
Labels
area/bundles Timoni's Bundle related issues and pull requests bug Something isn't working

Comments

@b4nst
Copy link
Contributor

b4nst commented Mar 9, 2024

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
@stefanprodan stefanprodan added bug Something isn't working area/bundles Timoni's Bundle related issues and pull requests labels Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bundles Timoni's Bundle related issues and pull requests bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants