Skip to content

Add SLI prober for Garage#651

Merged
github-actions[bot] merged 1 commit intodevelopfrom
garage/sli_prober
Apr 27, 2026
Merged

Add SLI prober for Garage#651
github-actions[bot] merged 1 commit intodevelopfrom
garage/sli_prober

Conversation

@TheBigLee
Copy link
Copy Markdown
Member

@TheBigLee TheBigLee commented Apr 22, 2026

Summary

  • This PR adds a new SLI prober for Garage

Checklist

  • Update tests.
  • Link this PR to related issues.
  • Merge with /merge comment.

Component PR: vshn/component-appcat#1155

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@TheBigLee TheBigLee marked this pull request as ready for review April 22, 2026 14:28
@TheBigLee TheBigLee requested a review from Copilot April 22, 2026 14:28
@github-actions
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 VSHNGarageReconciler to start/stop Garage SLIs and bootstrap required GarageBucket/GarageKey resources.
  • Added a new probes.VSHNGarage implementation 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.

Comment thread pkg/sliexporter/vshngarage_controller/vshngarage_controller.go
Comment thread pkg/sliexporter/vshngarage_controller/vshngarage_controller.go Outdated
Comment thread pkg/sliexporter/probes/garage.go Outdated
Comment thread pkg/sliexporter/probes/garage.go Outdated
Comment thread pkg/sliexporter/probes/garage.go
@github-actions
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread pkg/sliexporter/vshngarage_controller/vshngarage_controller.go
Comment thread pkg/sliexporter/probes/garage.go
Comment thread pkg/sliexporter/probes/garage_test.go
Comment thread pkg/sliexporter/probes/garage_test.go
Comment thread pkg/sliexporter/vshngarage_controller/vshngarage_controller.go
@TheBigLee TheBigLee requested review from a team, Kidswiss, mdnix and zugao and removed request for a team April 22, 2026 15:07
Comment thread pkg/sliexporter/probes/garage.go
Comment thread pkg/comp-functions/functions/vshngarage/deploy.go
Comment thread pkg/sliexporter/vshngarage_controller/vshngarage_controller.go
@github-actions
Copy link
Copy Markdown
Contributor

@Kidswiss
Copy link
Copy Markdown
Contributor

Also typo in PR title 😬

@TheBigLee TheBigLee requested a review from Kidswiss April 23, 2026 07:53
@TheBigLee TheBigLee changed the title Add SLI proper for Garage Add SLI prober for Garage Apr 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Comment thread pkg/sliexporter/vshngarage_controller/vshngarage_controller.go Outdated
@TheBigLee TheBigLee requested a review from Kidswiss April 23, 2026 14:52
@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

@mikeshootzz mikeshootzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think @Kidswiss already mentioned everything, rest LGTM :D

Copy link
Copy Markdown
Member

@mdnix mdnix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs fixing: #651 (comment)

Otherwise looking good

@github-actions
Copy link
Copy Markdown
Contributor

@Kidswiss
Copy link
Copy Markdown
Contributor

Think @Kidswiss already mentioned everything, rest LGTM :D

Sleep deprivation for the win 🤪

@github-actions
Copy link
Copy Markdown
Contributor

@TheBigLee
Copy link
Copy Markdown
Member Author

/merge

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot merged commit 5bee806 into develop Apr 27, 2026
9 checks passed
@github-actions github-actions Bot deleted the garage/sli_prober branch April 27, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants