Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add user agent to requests made by operator #1700

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Conversation

theSuess
Copy link
Member

@theSuess theSuess commented Oct 4, 2024

This adds a user agent which includes the operator version to all requests made by the operator. By doing this, Grafana administrators can better differentiate between requests that originated from humans and those performed by the operator

This adds a user agent which includes the operator version to all requests made
by the operator. By doing this, Grafana administrators can better differentiate
between requests that originated from humans and those performed by the operator
@theSuess theSuess marked this pull request as ready for review October 4, 2024 09:01
Copy link
Collaborator

@weisdd weisdd left a comment

Choose a reason for hiding this comment

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

The only catch about .Git.Tag is that it doesn't point at a particular commit, but rather indicates the last tag found in git tree. It's not a problem at all, I was just curious what would happen if I try to make a build from a non-tagged commit.

User-Agent seems to work well, and I absolutely agree that it's a useful change.

LGTM :)

@theSuess
Copy link
Member Author

theSuess commented Oct 7, 2024

@weisdd it will fall back to the latest tag present locally. Shouldn't be an issue though since we always build from tags in the release pipeline

@theSuess theSuess added this pull request to the merge queue Oct 7, 2024
Merged via the queue into master with commit 1519bae Oct 7, 2024
14 checks passed
@theSuess theSuess deleted the feat/user-agent branch October 7, 2024 06:24
Baarsgaard added a commit to Baarsgaard/grafana-operator that referenced this pull request Dec 16, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 16, 2024
…1795)

* Doc: Update default resyncPeriod

* Chore: Align Makefile Ko version with #1700

* Chore: Remove duplicate chainsaw binary path search
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants