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

Upgrade CRDs to apiextensions.k8s.io/v1 #1514

Closed
wants to merge 21 commits into from
Closed

Upgrade CRDs to apiextensions.k8s.io/v1 #1514

wants to merge 21 commits into from

Conversation

astefanutti
Copy link
Member

@astefanutti astefanutti commented Jun 10, 2020

Fixes #1487. Camel K CRDs currently use apiextensions.k8s.io/v1beta1, which will be removed in future release of Kubernetes: kubernetes/kubernetes#82022.

This PR enables the generation of the CRDs from the APIs, using the controller-gen CLI, which is part of the KubeBuilder project.

The Operator SDK wraps it to provide a CLI to generate CRDs. However, it does not work for Camel K APIs, as these are packaged in their own module which is not the project root module.

It will be possible to leverage the features that come with apiextensions.k8s.io/v1, such as validation and defaulting.

Last but not least, it brings OpenAPI structural schema, which also enables support for the kubectl explain sub-command for Camel K CRDs, e.g.:

$ kubectl explain integration.spec
KIND:     Integration
VERSION:  camel.apache.org/v1

RESOURCE: spec <Object>

DESCRIPTION:
     IntegrationSpec defines the desired state of Integration

FIELDS:
   configuration	<[]Object>

   dependencies	<[]string>

   flows	<[]string>

   kit	<string>

   profile	<string>
     TraitProfile represents lists of traits that are enabled for the specific
     installation/integration

   replicas	<integer>

   repositories	<[]string>

   resources	<[]Object>

   serviceAccountName	<string>

   sources	<[]Object>

   traits	<map[string]Object>

Release Note

Upgrade CRDs to apiextensions.k8s.io/v1

@astefanutti astefanutti marked this pull request as ready for review June 11, 2020 15:24
@astefanutti
Copy link
Member Author

astefanutti commented Jun 22, 2020

Currently blocked by #1550.

TODO:

  • Update Helm charts
  • Update OLM CSVs

@astefanutti astefanutti added the area/core Core features of the integration platform label Jun 22, 2020
@astefanutti
Copy link
Member Author

Superseded by #1582.

@astefanutti astefanutti deleted the pr-114 branch November 22, 2021 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Core features of the integration platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade CRDs to apiextensions.k8s.io/v1
1 participant