-
Notifications
You must be signed in to change notification settings - Fork 113
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
[Feature] API Conditions unifications #2953
Comments
in example:
this is a healthy state. Most of them are the same, with the exception of 2. |
Hi @mjudeikis, thanks for opening this issue and bringing this topic. I appreciate your suggestion and agree that being complaint to the standard way of doing things is always a good idea as it makes people's life simpler. The main target at the moment is finalizing the 1.0 release, which is supposed to be launched by the next week. Unfortunately, given the limited bandwidth, the risk is delaying the release or implementing these changes in a rush, with the risk of introducing bugs. With many users waiting for the GA to start trying or using the new version of Liqo in production, the goal is delivering a release as stable and reliable as possible. While I personally believe your proposal is valuable, and, to be honest, it would be nice doing this kind of API change before officially release 1.0, but probably, this is not crucial at the moment and we should instead focus on consolidation, leaving this to future improvements of the APIs. That said, I’d love to hear your thoughts, do you see any critical reasons why this change should be made now? |
We started integrating the liqo "as a library" approach, and it just creates more mapping boilerplates. Nothing chatgpt cant help with :) In general, I feel this is one of those where,e if not done now, it will never be done without v2.0, as having a stable release would require a migration strategy. I will leave it to your judgment, if you want to keep this or just close as "no fix" and move on :) |
Is your feature request related to a problem? Please describe.
While you working on making Liqo GA, it would be great if you could unify object conditions to be closer to Upstream K8S.
Describe the solution you'd like
Currently, your objects are:
Where upstream usually is more like this:
mainly
Severity ConditionSeverity
json:"severity,omitempty"and `Status corev1.ConditionStatus `json:"status"
This makes using upstream conditions setters, getters, and checkers easier. Like example we align them here:
https://github.com/kcp-dev/kcp/tree/main/sdk/apis/third_party/conditions/util/conditions
https://github.com/kcp-dev/kcp/tree/main/sdk/apis/third_party/conditions/apis/conditions/v1alpha1
In addition see example ^ how conditions apis are shared in every object.
This is good to have but makes things way easier as now you can do things like:
And now if you look to your objects (v0.10.3 branch):
Statuses are
None
,Established
,Success
, etc. There is no single unification like in upstream True/False to tell if its ready or not.The text was updated successfully, but these errors were encountered: