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

Inline the ready condition builder in the patching reconciler #3454

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

danail-branekov
Copy link
Member

Is there a related GitHub Issue?

#2098

What is this change about?

  • introduce k8s.RuntimeObjectWithStatusConditions
  • replace conditions.RuntimeObjectWithStatusConditions with
    k8s.RuntimeObjectWithStatusConditions - that made the generic
    signature of the awaiter a bit awkward
  • Make the ready condition builder availble into the patching reconciler
    and remove it from all the controllers
  • introduce the k8s.NotReadyError error. By returning that error in
    controllers, the patching reconciler sets the Ready condition
    accordingly
  • The kpack build reconciler no longer uses the patching reconciler as
    kpack build custom resource does not implement the
    RuntimeObjectWithStatusConditions interface

Tag your pair, your PM, and/or team

@georgethebeatle

georgethebeatle
georgethebeatle previously approved these changes Sep 2, 2024
@danail-branekov danail-branekov marked this pull request as draft September 2, 2024 14:12
auto-merge was automatically disabled September 2, 2024 14:12

Pull request was converted to draft

* introduce `k8s.RuntimeObjectWithStatusConditions`
* replace `conditions.RuntimeObjectWithStatusConditions` with
  `k8s.RuntimeObjectWithStatusConditions` - that made the generic
  signature of the awaiter a bit awkward
* Make the ready condition builder availble into the patching reconciler
  and remove it from all the controllers
* introduce the `k8s.NotReadyError` error. By returning that error in
  controllers, the patching reconciler sets the `Ready` condition
  accordingly
* The kpack build reconciler no longer uses the patching reconciler as
  kpack build custom resource does not implement the
  `RuntimeObjectWithStatusConditions` interface

Co-authored-by: Georgi Sabev <[email protected]>
@danail-branekov danail-branekov marked this pull request as ready for review September 2, 2024 14:15
@georgethebeatle georgethebeatle enabled auto-merge (rebase) September 2, 2024 14:16
@georgethebeatle georgethebeatle merged commit 0735b6e into main Sep 2, 2024
10 of 11 checks passed
@georgethebeatle georgethebeatle deleted the ready-condition-for-all branch September 2, 2024 14:34
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.

[Explore]: Ready status condition on all Korifi objects
2 participants