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

Contribute core/v1 and apps/v1 CRDs for all useful resources #4

Merged
merged 4 commits into from
Apr 1, 2021

Conversation

davidfestal
Copy link
Member

This PR contributes CRDs for useful legacy scheme resources (Pods, Deployments) to be added in the KCP control plane.
This is mainly to be able to start using KCP with meaningful resources, even before having implemented:

  • the concept of a physical cluster registered to the KCP
  • the import of underlying physical cluster APIResources as CRDs in KCP.

These CRDs have been generated from the related Kube APIs through the kubebuilder controller-gen tool.
However, before the generation, the types had to be fixed in order to:

  • Add required kubebuilder annotation such as groupName, sub-resource-related annotations, ...
  • listType and listMapKeys annotations wherever patchStrategy and patchergeKey was used, in order not to loose this precious information, since patchStrategy and patchMergeKey vendor extensions do not exist in CRD OpenAPI schema.

@@ -0,0 +1,63 @@

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a doc in contrib/crds that describes how these were created and how to reporduce?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, I'll do it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Readme.md added in the last force push

Copy link
Member Author

Choose a reason for hiding this comment

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

I also added a shell script to regenerate the CRDs if necessary

@smarterclayton smarterclayton merged commit 6178e30 into kcp-dev:main Apr 1, 2021
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