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: decoding config document with wrong apiVersion #8285

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

smira
Copy link
Member

@smira smira commented Feb 8, 2024

Fixes #8270

The base bug was that the registry will return nil ConfigDocument if the version is not registered for a kind, which would result into weird config decoding errors.

Add more unit-tests, while at it, also add more fuzzing samples.

@smira smira added this to the v1.7 milestone Feb 8, 2024
Fixes siderolabs#8270

The base bug was that the registry will return `nil` `ConfigDocument` if
the version is not registered for a kind, which would result into weird
config decoding errors.

Add more unit-tests, while at it, also add more fuzzing samples.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira smira force-pushed the fix/config-document-wrong-kind branch from 54011a2 to 013e130 Compare February 8, 2024 14:39
@smira
Copy link
Member Author

smira commented Feb 8, 2024

/m

@talos-bot talos-bot merged commit 013e130 into siderolabs:main Feb 8, 2024
18 checks passed
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.

Error when apiVersion is not set in a patch when creating cluster
3 participants