-
Notifications
You must be signed in to change notification settings - Fork 56
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 Terraform compatibility #524
Conversation
WalkthroughThe pull request introduces enhancements to the registration of internal API versions for Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Signed-off-by: Andrei Kvapil <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
pkg/apis/apps/v1alpha1/register.go (1)
75-78
: LGTM! Important addition for Terraform compatibilityThe addition of internal API version registration is crucial for proper API version handling and conversion. This change follows Kubernetes API machinery patterns and is essential for Terraform provider compatibility, as it enables proper type conversion between different API versions.
This change ensures that the API server can handle version conversions correctly, which is particularly important for Terraform providers that need to work with different API versions seamlessly.
pkg/cmd/server/start.go (1)
259-261
: LGTM! Essential cleanup for Terraform compatibilityRemoving the base Application/ApplicationList definitions after processing is crucial. This ensures that Terraform only sees the concrete, registered resource types in the OpenAPI spec, preventing confusion with the base types. This is a key fix for Terraform provider compatibility.
This cleanup ensures that the OpenAPI spec accurately represents only the available API resources, which is essential for tools like Terraform that rely on OpenAPI/Swagger specifications to understand the API surface.
Signed-off-by: Andrei Kvapil [email protected]
Summary by CodeRabbit
New Features
Application
andApplicationList
.Bug Fixes
Documentation