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

k8s tunnel.ForwardPortE does not honor options.RestConfig #1463

Closed
jduepmeier opened this issue Nov 7, 2024 · 0 comments · Fixed by #1464
Closed

k8s tunnel.ForwardPortE does not honor options.RestConfig #1463

jduepmeier opened this issue Nov 7, 2024 · 0 comments · Fixed by #1464
Assignees

Comments

@jduepmeier
Copy link
Contributor

Describe the bug
When calling tunnel.ForwardPortE with a KubecltOptions struct containing a RestConfig the RestConfig is not used for the api calls.

To Reproduce
Steps to reproduce the behavior, code snippets and examples which can be used to reproduce the issue.

options := k8s.NewKubectlOptionsWithRestConfig(restConfig, namespace)
tunnel := k8s.NewTunnel(options, resourceType, resourceName, 0, port)
tunnel.ForwardPortE(t)

Expected behavior
The rest config is honored.

Versions

  • Terratest version: v0.46.16
  • Environment details (mac)
@jduepmeier jduepmeier added the bug Something isn't working label Nov 7, 2024
@ZachGoldberg ZachGoldberg added the terratest label Nov 7, 2024 — with Linear
@ZachGoldberg ZachGoldberg removed the bug Something isn't working label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants