Skip to content

feat: better support for 'x-kubernetes-preserve-unknown-fields' #82

Merged
arnarg merged 6 commits into
arnarg:mainfrom
mossy-witch:main
Jan 21, 2026
Merged

feat: better support for 'x-kubernetes-preserve-unknown-fields' #82
arnarg merged 6 commits into
arnarg:mainfrom
mossy-witch:main

Conversation

@mossy-witch

Copy link
Copy Markdown
Contributor

Hey again :)

thanks for merging the last fix so quickly and thanks for the project in general!

I just found another little edge-case in the crd-generator, when generating crds for kyverno and then installing kyverno-policies helm chart.

They use fields which have x-kubernetes-preserve-unknown-fields without any type hint extensively. In this case the generator still expected an attrset in nix, but it can per spec be any json value. In kyverno it was given an array, which led to an error. Now it's just types.unspecified when x-kubernetes-preserve-unknown-fields is given without any type hints.

@arnarg arnarg left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this contribution!

@arnarg
arnarg merged commit a09a0b6 into arnarg:main Jan 21, 2026
4 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.

2 participants