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: handle x-kubernetes-preserve-unknown-fields #325

Merged

Conversation

jknutson
Copy link
Contributor

@jknutson jknutson commented Feb 20, 2025

Handle missing type in schema (generateObject) when x-kubernetes-preserve-unknown-fields is present.

CI checks are passing on my copy/fork of the repo: https://github.com/jknutson/kro/actions

I added a test, but did not include a type check; I did not feel that the goal here was to ensure a specific type.
If it would be valuable, I can add a test to ensure that we have an "object" returned.

This resolves #319; the failed RGD reconciles as soon as I start up the controller with this change.

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

Thank you @jknutson ! i have one tiny suggestion below :)

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

Thank you @jknutson ! :)

@a-hilaly a-hilaly merged commit 534ff5e into kro-run:main Feb 22, 2025
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.

KRO fails to generate ResourceGraphDefinition when OpenAPI Schema type is not set
3 participants