Add SLI prober for Garage#651
Conversation
6e6fb07 to
7151bd6
Compare
|
|
ff03a72 to
f335b19
Compare
|
f335b19 to
51aef67
Compare
|
51aef67 to
f216e5c
Compare
|
f216e5c to
8956c00
Compare
|
8956c00 to
5626c44
Compare
|
There was a problem hiding this comment.
Pull request overview
This PR adds SLI probing support for the VSHNGarage service by introducing a dedicated SLI exporter controller, a new Garage probe implementation, and the required API/RBAC wiring so the exporter can create/read the supporting Garage CRs and secrets.
Changes:
- Added a new
VSHNGarageReconcilerto start/stop Garage SLIs and bootstrap required GarageBucket/GarageKey resources. - Added a new
probes.VSHNGarageimplementation that checks Garage admin health and performs an S3 write. - Updated API/CRD/RBAC and SLI exporter main to enable the new controller when the XVSHNGarage kind is available.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/sliexporter/vshngarage_controller/vshngarage_controller.go | New SLI exporter controller for XVSHNGarage; creates/deletes SLI GarageBucket/GarageKey CRs and dials the Garage probe. |
| pkg/sliexporter/vshngarage_controller/vshngarage_controller_test.go | Unit tests for probe start/stop behavior and guard conditions (startup grace, no creds, suspended). |
| pkg/sliexporter/probes/garage.go | New Garage probe: admin health check + S3 write probe, plus constructor with endpoint parsing. |
| pkg/comp-functions/functions/vshngarage/deploy.go | Enables admin key generation in the Garage deployment values. |
| apis/vshn/v1/dbaas_vshn_garage.go | Adds CompositionRef to XVSHNGarageSpec and implements XVSHNGarage getters used by the generic SLI reconciler. |
| apis/vshn/v1/zz_generated.deepcopy.go | Updates deepcopy to include the newly added CompositionRef field. |
| crds/vshn.appcat.vshn.io_xvshngarages.yaml | CRD schema update to include spec.compositionRef. |
| config/sliexporter/rbac/role.yaml | Grants SLI exporter permissions for GarageBucket/GarageKey and Garage/XVSHNGarage resources. |
| cmd/sliexporter.go | Wires up the VSHNGarage controller in the SLI exporter binary. |
| config/controller/webhooks.yaml | Removes the leading YAML document separator line. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
5626c44 to
59a9105
Compare
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
59a9105 to
1b132f6
Compare
1b132f6 to
31a8939
Compare
|
|
Also typo in PR title 😬 |
31a8939 to
c3056df
Compare
c3056df to
a1216f3
Compare
|
|
a1216f3 to
a1a393a
Compare
|
a1a393a to
a619619
Compare
|
mikeshootzz
left a comment
There was a problem hiding this comment.
Think @Kidswiss already mentioned everything, rest LGTM :D
mdnix
left a comment
There was a problem hiding this comment.
This needs fixing: #651 (comment)
Otherwise looking good
a619619 to
bc05b19
Compare
|
Sleep deprivation for the win 🤪 |
bc05b19 to
182029a
Compare
|
|
/merge |
Summary
Checklist
/mergecomment.Component PR: vshn/component-appcat#1155