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

fix: reintroduce-support-for-proxy #1286

Merged
merged 5 commits into from
Oct 31, 2023

Conversation

weisdd
Copy link
Collaborator

@weisdd weisdd commented Oct 23, 2023

v4 of the operator had support for proxy config through env variables, which got lost when we introduced a custom transport.
This PR should bring it back by reusing the default http transport while preserving the customized settings.

NOTE: the proxy setting affects not only dashboard controller, but Grafana API as well, which might be useful when a Grafana instance cannot be reached directly, though makes configuration more complex as users will have to specify service/pod IP range in NO_PROXY.

Fixes: #1274

@weisdd weisdd self-assigned this Oct 23, 2023
@umezawatakeshi
Copy link

I tried this patch just now and it seemed to work fine on my restricted network environment. 👍

@NissesSenap
Copy link
Collaborator

@weisdd should we add some docs around this to make it easy for people to find.

As mentioned in #1274 (comment) it's currently not possible to add env variable to the grafana-operator helm chart.
Could you also add this feature?

dependabot bot and others added 2 commits October 31, 2023 10:53
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 39.2.2 to 39.2.3.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](tj-actions/changed-files@408093d...95690f9)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@pb82 pb82 force-pushed the fix/reintroduce-support-for-proxy branch from 2417fdd to d8ad7fa Compare October 31, 2023 09:53
@weisdd
Copy link
Collaborator Author

weisdd commented Oct 31, 2023

@NissesSenap sorry for the delay, I've just added support for envs.

@NissesSenap NissesSenap merged commit 7f4ee59 into master Oct 31, 2023
9 checks passed
@NissesSenap NissesSenap deleted the fix/reintroduce-support-for-proxy branch October 31, 2023 11:12
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.

[Bug] the operator doesn't seem to use proxy config to fetch dashboards
5 participants