Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] CheCluster API v2

Sure.
I will add my topic to the agenda.

On Tue, May 3, 2022 at 6:56 PM Mario Loriedo <mario.loriedo@xxxxxxxxx> wrote:
Thank you Anatolii. What about presenting and discussing that at the next community meeting on Monday?

On Tue, May 3, 2022 at 4:04 PM Anatolii Bazko <abazko@xxxxxxxxxx> wrote:
Hello.

CheCluster API has not been changed for many years despite the fact that the project has been evolving.
So, we came to the point when we have dozens of deprecated fields and the structure of the CheCluster Custom Resource
does not correspond to project architecture.

Here is a new CheCluster API v2 [1]. Changes have been introduced in the context of simplifying Eclipse Che configuration [2].
The corresponding PR [3] is created and ready to review.

Here are answers from some questions you might have:

Q: Can I use CheCluster API v1 to get/create/update//delete a Custom Resource?
A: Yes, you can. CheCluster API v1 is still there.

Q: What happens with a Custom Resource when Eclipse Che is updated?
A: It will be automatically converted to v2, but it is possible to use API v1 to manipulate with the Custom Resource.

Q: Where can I find the correspondence between fields of a Custom Resource v1 and v2 ?
A: Here is conversion algorithm from v1 to v2 [4], and from v2 to v1 [5]

[1] https://github.com/eclipse-che/che-operator/blob/3815a248cca8be70c173814469e0a3e977fb8899/api/v2/checluster_types.go
[2] https://github.com/eclipse/che/issues/20758
[3] https://github.com/eclipse-che/che-operator/pull/1324
[4] https://github.com/eclipse-che/che-operator/blob/a39c76e7e05a8d0c6276fb646a988d358af9fc02/api/v1/conversion_to.go
[5] https://github.com/eclipse-che/che-operator/blob/a39c76e7e05a8d0c6276fb646a988d358af9fc02/api/v1/conversion_from.go


--

ANATOLII BAZKO

PRINCIPAL DEVELOPER

Red Hat Ukraine

_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/che-dev
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/che-dev


--

ANATOLII BAZKO

PRINCIPAL DEVELOPER

Red Hat Ukraine


Back to the top