Skip to content

Conversation

@chaudum
Copy link
Contributor

@chaudum chaudum commented Mar 23, 2023

The CLI argument allows to set the X-Loki-Actor-Path HTTP header for requests of the reader.

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/upgrading/_index.md
@chaudum chaudum changed the title Add -actor CLI flag for Canary Mar 23, 2023
@chaudum chaudum force-pushed the chaudum/canary-actor branch from 5ed76e5 to 0f8e406 Compare March 23, 2023 20:04
@chaudum chaudum changed the title Add -actor CLI flag for Canary Mar 23, 2023
@chaudum chaudum force-pushed the chaudum/canary-actor branch from 0f8e406 to 3932338 Compare March 23, 2023 20:23
@pull-request-size pull-request-size bot added size/M and removed size/S labels Mar 23, 2023
@chaudum chaudum force-pushed the chaudum/canary-actor branch 3 times, most recently from 9f65234 to 229861a Compare March 27, 2023 07:03
@chaudum chaudum force-pushed the chaudum/canary-actor branch from 229861a to cbe34b4 Compare April 4, 2023 07:03
@chaudum chaudum marked this pull request as ready for review April 4, 2023 07:26
@chaudum chaudum requested a review from a team as a code owner April 4, 2023 07:26
@chaudum chaudum requested a review from slim-bean April 4, 2023 13:26
user string,
pass string,
tenantID string,
actorPath string,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the name actorpath here? Can't this be actor as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, it can just be actor.

@chaudum chaudum force-pushed the chaudum/canary-actor branch from cbe34b4 to 0688a58 Compare April 11, 2023 06:23
// the set headers.
// If the passed request is nil, a new temporary request object is created.
// This is useful for creating the headers only.
func (r *Reader) ApplyHeaders(req *http.Request) http.Header {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a test for this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@chaudum chaudum force-pushed the chaudum/canary-actor branch from 0688a58 to c6d91ef Compare April 21, 2023 06:11
@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 21, 2023
chaudum added 4 commits July 14, 2023 10:18
The CLI argument allows to set the `X-Loki-Actor-Path` HTTP header for
requests of the reader.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum force-pushed the chaudum/canary-actor branch from eb67ddf to 4408460 Compare July 14, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants