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 (kubernetes-client-api) : Config should use proxy-url in kubeconfig's cluster configuration #6289

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

rohanKanojia
Copy link
Member

@rohanKanojia rohanKanojia commented Aug 19, 2024

Description

Fix #6150

🚧 Requires #6279 to be merged first

While loading .kube/config during auto-configuration phase, set Config's httpProxy / httpsProxy fields if current context's cluster configuration has proxy-url set

Signed-off-by: Rohan Kumar [email protected]

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • I Added CHANGELOG entry regarding this change
  • I have implemented unit tests to cover my changes
  • I have added/updated the javadocs and other documentation accordingly
  • No new bugs, code smells, etc. in SonarCloud report
  • I tested my code in Kubernetes
  • I tested my code in OpenShift

README.md Outdated
Comment on lines 121 to 122
| `http.proxy` / `HTTP_PROXY` | URL to the [proxy](http://www.gnu.org/software/wget/manual/html_node/Proxies.html) for HTTP requests | |
| `https.proxy` / `HTTPS_PROXY` | URL to the [proxy](http://www.gnu.org/software/wget/manual/html_node/Proxies.html) for HTTPS requests | |
Copy link
Member

Choose a reason for hiding this comment

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

Should at least include a link to the FAQ entry.
The behavior of these ENV variables, system properties is not the same as the behavior of the rest of entries in the list. This should be highlighted maybe with a [(*special order of precedence)](#link-to-faq) or something like that.

Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

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

LGTM except for the missing link in the README. Otherwise is good, nice job!
I'm not sure if the changelog entry is missing to or if it was added previously.

@manusa manusa added this to the 7.0.0 milestone Aug 28, 2024 — with automated-tasks
…nfig's cluster configuration

Set Config's `httpProxy` / `httpsProxy` fields if current context's
cluster configuration has `proxy-url` set

Signed-off-by: Rohan Kumar <[email protected]>
Copy link

@manusa manusa self-requested a review August 28, 2024 08:42
Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

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

LGTM, thx!

@manusa manusa merged commit 150c111 into fabric8io:main Aug 28, 2024
21 checks passed
@rohanKanojia rohanKanojia deleted the pr/issue6150 branch August 28, 2024 09:31
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.

Configuration should use proxy-url if provided in .kube/config
2 participants