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 naming of KubeConfig cluster for empty context. #3369

Merged
merged 3 commits into from
Oct 11, 2023
Merged

Conversation

bigkevmcd
Copy link
Contributor

@bigkevmcd bigkevmcd commented Sep 18, 2023

What changed?
When the context is "" i.e. the default context, this was generating odd names for the KubeConfig elements -user etc.

This defaults to "default" for the context name which ensures that the generated names make more sense.

Why was this change made?
Because the naming was broken.

How was this change implemented?

How did you validate the change?

  • Explain how a reviewer can verify the change themselves

  • Integration tests -- what is covered, what cannot be covered;
    or, explain why there are no new tests

  • Unit tests -- what is covered, what cannot be covered; are
    there tests that fail without the change?

Release notes

Documentation Changes

Other follow ups

When the context is "" i.e. the default context, this was generating odd
names for the KubeConfig elements `-user` etc.

This ensures that we put something in for the context.
@bigkevmcd bigkevmcd added the bug Something isn't working label Sep 18, 2023
@bigkevmcd bigkevmcd requested review from ranatrk and a team September 18, 2023 10:27
Copy link
Collaborator

@foot foot left a comment

Choose a reason for hiding this comment

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

Nice! Makes sense

@bigkevmcd bigkevmcd merged commit 78ec266 into main Oct 11, 2023
@bigkevmcd bigkevmcd deleted the fix-output branch October 11, 2023 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants