Add conditions to httpbin CRs#31
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughAdds Kubernetes-style Conditions to HttpBin and HttpBinDeployment types and statuses, updates deepcopy generation, modifies controllers to set/update status.conditions during reconciliation, and bumps Kubebuilder/controller-gen tooling and CRD annotations/schemas to include the new status.conditions field. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~40 minutes 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Free ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (10)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
e895c6d to
3dd38fb
Compare
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com
There was a problem hiding this comment.
Pull Request Overview
This PR adds standardized Kubernetes conditions to the HttpBin and HttpBinDeployment custom resource status fields, enabling better observability of resource states. The changes provide clearer feedback on deployment readiness and failure scenarios through structured status conditions.
- Introduces status conditions and reasons for both HttpBin and HttpBinDeployment resources
- Updates controllers to set appropriate conditions during create, ready, and failure states
- Improves deep-copy handling for status fields to prevent unintended mutations
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/controller/httpbindeployment_controller.go | Adds condition updates throughout reconciliation logic for deployment, service, and ingress operations |
| internal/controller/httpbin_controller.go | Simplifies status updates and adds condition management for HttpBin resources |
| go.mod | Updates Kubebuilder tooling from v3 to v4 |
| api/v1alpha1/zz_generated.deepcopy.go | Adds proper deep-copy handling for Conditions slice in HttpBinStatus |
| api/v1alpha1/httpbindeployment_types.go | Defines condition types and reason constants for HttpBinDeployment |
| api/v1alpha1/httpbin_types.go | Defines condition types and reason constants for HttpBin |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
mirzakopic
left a comment
There was a problem hiding this comment.
@cnvergence Could you please try to get make kind-test to work locally? I use that to quickly checkout the latest code and test it.
I would appreciate that if we have that in the repo, it makes local debugging and testing easier :)
|
it is a part of #25 |
mirzakopic
left a comment
There was a problem hiding this comment.
lgtm then, lets fix the make kind test as part of e2e issue
https://github.com/platform-mesh/httpbin-operator/issues/61
Summary by CodeRabbit
New Features
Bug Fixes
Chores