Skip to content

Commit

Permalink
Merge pull request #2264 from replicatedhq/divolgin/instances
Browse files Browse the repository at this point in the history
Include reporting info when sending support bundles
  • Loading branch information
divolgin committed Oct 20, 2021
2 parents 91e454b + 4dc23f4 commit 13ff11c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/handlers/troubleshoot.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/gorilla/mux"
"github.com/pkg/errors"
"github.com/replicatedhq/kots/pkg/logger"
"github.com/replicatedhq/kots/pkg/reporting"
"github.com/replicatedhq/kots/pkg/store"
"github.com/replicatedhq/kots/pkg/supportbundle"
"github.com/replicatedhq/kots/pkg/supportbundle/types"
Expand Down Expand Up @@ -349,6 +350,9 @@ func (h *Handler) ShareSupportBundle(w http.ResponseWriter, r *http.Request) {
return
}

reportingInfo := reporting.GetReportingInfo(app.ID)
reporting.InjectReportingInfoHeaders(req, reportingInfo)

req.Header.Set("Content-Type", "application/tar+gzip")

req.ContentLength = fileStat.Size()
Expand Down

0 comments on commit 13ff11c

Please sign in to comment.