-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add proxy support for registry cache #246
Add proxy support for registry cache #246
Conversation
1f224b0
to
68f0178
Compare
@dergeberl, thanks for the PR and sorry for the delay! We will try to provide a review next week! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dergeberl ,
Sorry for the delay for the review!
I posted a feedback.
Do you also have a setup where we could test the feature locally? For example a proxy running in-cluster? If you don't, we can try to invest in such setup.
I see we rather rely that the go clients in the Distribution project respect the corresponding env vars. I just wanted to see this working in example setup before we merge this.
The Gardener project currently lacks enough active contributors to adequately respond to all PRs.
You can:
/lifecycle stale |
Sorry for the delay, @dergeberl will soon return from vacation and continue working on this PR. |
68f0178
to
bfc4f10
Compare
9709ab2
to
bc53b57
Compare
Yes, we have tested it and are already using it. |
Sure. I was rather wondering about how we can test it. But I will try to invest these days in a local setup to test it out. |
Sorry I got that wrong. I will have a look next week for a local setup. Let me know if you got a test setup already. |
The Gardener project currently lacks enough active contributors to adequately respond to all PRs.
You can:
/lifecycle stale |
/remove-lifecycle stale |
Adding steps to test the proxy scenario.
spec:
extensions:
- type: registry-cache
providerConfig:
apiVersion: registry.extensions.gardener.cloud/v1alpha3
kind: RegistryConfig
caches:
- upstream: docker.io
volume:
size: 500Mi
proxy:
httpsProxy: http://my-squid
/lgtm |
LGTM label has been added. Git tree hash: ed856326b83e8bc416b6092bba83098e771e7e2b
|
/hold |
/hold cancel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ialidzhikov The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Occurrence of #290 /test pull-gardener-extension-registry-cache-e2e-kind |
How to categorize this PR?
/area usability
/kind enhancement
What this PR does / why we need it:
This PR adds the possibility to set a proxy for a registry cache. The setting will be added with the
HTTP_PROXY
,HTTPS_PROXY
andNO_PROXY
asenv
in the statefulset.We have the usecase where a registry is only reachable via a proxy. As it not easy/possible to set a proxy within containerd and also have the
NO_PROXY
configured to include all internal IPs/domains (also in cases where there are multiple proxies). Therefore we want to use the registry cache for that usecase.Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
N/A
Release note: