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

Kubeseal removes the proxy-url flag from kubeconfig #593

Closed
jvandijk opened this issue May 21, 2021 · 1 comment
Closed

Kubeseal removes the proxy-url flag from kubeconfig #593

jvandijk opened this issue May 21, 2021 · 1 comment

Comments

@jvandijk
Copy link

jvandijk commented May 21, 2021

Hello,

I use a proxy-url flag in my kubeconfig which was introduced in v1.19 of Kubectl (kubernetes/client-go#351) since we access the cluster via a Bastion host. Now the problem is that, if I add the proxy-url flag in the config and run kubeseal, the proxy-url flag gets removed from the kubeconfig which is very inconvenient since this requires to use the environment export HTTP_PROXY logic to have a working version of kubeseal. After running that you have to set the proxy-url again to have other tooling working again.

Reproduction steps:

  • Add a proxy-url flag to kubeconfig for accessing the cluster via bastion
    -- manually in file before server : proxy-url: http://localhost:8888
    -- via kubectl : kubectl config set clusters.<name>.proxy-url "http://localhost:8888"
  • Run kubeseal without any input
  • see that proxy-url flag disappeared from the config

I can't seem to find a way to use my kubeconfig without it being tainted by the kubeseal command.

Versions used:

  • kubeseal version : v0.16.0
  • kubectl version : v1.19.7
@jvandijk
Copy link
Author

A Pull Request (#705) was issued updating the client-go version to v0.22.1. This was released under version 0.17.2, also solving this issue.

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

No branches or pull requests

1 participant