Skip to content

Commit

Permalink
fix: /ready endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
chmllr committed Oct 18, 2024
1 parent c49155b commit 4bc3b82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion halo/cmd/ready.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ func newReadyCmd() *cobra.Command {
// queryReady calls halo's /ready endpoint and returns nil if the status is ready
// or an error otherwise.
func queryReady(ctx context.Context, cfg readyConfig) error {
req, err := http.NewRequestWithContext(ctx, http.MethodGet, cfg.MonitoringURL, nil)
url := cfg.MonitoringURL + "/ready"
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
if err != nil {
return errors.Wrap(err, "http request creation")
}
Expand Down

0 comments on commit 4bc3b82

Please sign in to comment.