Skip to content

Commit

Permalink
With-bindings usage flag for info/runtimes endpoint (#1320)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmiskiewicz authored Oct 15, 2024
1 parent 232905f commit 9ff50a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/runtime/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,9 @@ func (h *Handler) getFilters(req *http.Request) dbmodel.InstanceFilter {
filter.Regions = query[pkg.RegionParam]
filter.Shoots = query[pkg.ShootParam]
filter.Plans = query[pkg.PlanParam]
if v, exists := query[pkg.WithBindingsParam]; exists && v[0] == "true" {
filter.BindingExists = ptr.Bool(true)
}
if v, exists := query[pkg.ExpiredParam]; exists && v[0] == "true" {
filter.Expired = ptr.Bool(true)
}
Expand Down

0 comments on commit 9ff50a3

Please sign in to comment.