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 the missing "interactiveMode" field in kubeconfig generated by GetKubeconfigForContext() API #110

Merged
merged 2 commits into from
Oct 3, 2023

Conversation

prkalle
Copy link
Contributor

@prkalle prkalle commented Oct 3, 2023

What this PR does / why we need it

This PR fixes the missing "interactiveMode" field in the kubeconfig(in user.exec structure) generated by GetKubeconfigForContext() API

Changes Summary:

  • Changed the AuthInfo structure in tae/internal/kubconfig/types.goto empty interface to address the loss of information during yaml marshaling because GetKubeconfigForContext() would not modify the AuthInfo structure of Kubeconfig.
  • Updated unit tests to validate the same.
  • Updated the go modules

Which issue(s) this PR fixes

Fixes #109

Describe testing done for PR

Unit tests updated to have interactiveMode field and validated the kubeconfig generated by GetKubeconfigForContext() API has interactiveMode field.

Release note

Fix the missing "interactiveMode" field in kubeconfig generated by GetKubeconfigForContext() API

Additional information

Special notes for your reviewer

@prkalle prkalle requested a review from a team as a code owner October 3, 2023 18:19
…tKubeconfigForContext() API

Signed-off-by: Prem Kumar Kalle <[email protected]>
Signed-off-by: Prem Kumar Kalle <[email protected]>
@prkalle prkalle force-pushed the fix/kubeconfig_interactiveMode branch from f3cc4ba to 7f9898f Compare October 3, 2023 19:07
Copy link
Contributor

@vuil vuil left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for the fixes!

@prkalle prkalle merged commit 0b93726 into vmware-tanzu:main Oct 3, 2023
4 checks passed
@marckhouzam marckhouzam added this to the v1.1.0 milestone Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants