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

Ensure kind and apiVersion are always included in raw specs #401

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

jacobtomlinson
Copy link
Member

Closes #400

It seems that when creating custom resources Kubernetes always validates that the kind and apiVersion fields are included in the spec. This isn't true for core objects and these values can be omitted and we've always made the assumption that this was true for all objects.

This PR ensures that those fields are always included in the raw spec.

@jacobtomlinson jacobtomlinson added bug Something isn't working kr8s labels Jun 11, 2024
@github-actions github-actions bot added the tests label Jun 11, 2024
Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.28%. Comparing base (87063fc) to head (bfa0f62).
Report is 106 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #401      +/-   ##
==========================================
+ Coverage   94.61%   95.28%   +0.66%     
==========================================
  Files          29       29              
  Lines        3141     3565     +424     
==========================================
+ Hits         2972     3397     +425     
+ Misses        169      168       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jacobtomlinson jacobtomlinson merged commit f4c9252 into kr8s-org:main Jun 11, 2024
12 checks passed
@jacobtomlinson jacobtomlinson deleted the kind_api_raw branch June 11, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working kr8s tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creation of custom objects fails even when they are registered/created with new_class
2 participants