Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adding installHint field to kubeconfigs that have been converted to the exec format #282

Merged
merged 8 commits into from
May 25, 2023

Conversation

cirvine-MSFT
Copy link
Contributor

InstallHint field tells users how to install the binary in the command field if it isn't present in their PATH.
We need to add this field to any kubeconfig that gets converted since it can be transported to another machine/environment that does not have kubelogin installed.

@codecov-commenter
Copy link

codecov-commenter commented May 24, 2023

Codecov Report

Merging #282 (296c1c5) into master (3d12aa1) will increase coverage by 0.20%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #282      +/-   ##
==========================================
+ Coverage   53.48%   53.68%   +0.20%     
==========================================
  Files          15       15              
  Lines        1120     1125       +5     
==========================================
+ Hits          599      604       +5     
  Misses        488      488              
  Partials       33       33              
Impacted Files Coverage Δ
pkg/converter/convert.go 79.23% <100.00%> (+0.36%) ⬆️

execInstallHint = `
kubelogin is not installed which is required to connect to AAD enabled cluster.

To learn more, please go to https://aka.ms/aks/kubelogin
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@weinong weinong left a comment

Choose a reason for hiding this comment

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

LGTM

@weinong weinong merged commit 9a37071 into Azure:master May 25, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants