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

Fix k3d package simultaneous booting #296

Merged
merged 3 commits into from
Nov 8, 2024
Merged

Fix k3d package simultaneous booting #296

merged 3 commits into from
Nov 8, 2024

Conversation

andrewstucki
Copy link
Contributor

This fixes up a bug in the k3d package that causes startupManifests to fail to apply objects on subsequent cluster creation due to client.Patch unmarshaling semantics and the fact that we were using a singleton. Rather than move off of a singleton, this just dups the objects we're patching so that we never have meta.managedFields set. Without the DeepCopyObject call the added tests fails most of the time with:

        	Error:      	Received unexpected error:
        	            	metadata.managedFields must be nil

Additionally this adds some customization options for a cluster in case you don't actually need a full 3 nodes, want to use a custom image, timeout, etc.

@andrewstucki andrewstucki merged commit 6e60328 into main Nov 8, 2024
5 checks passed
@andrewstucki andrewstucki deleted the k3d-package-fix branch November 8, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants