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

Use exact match to find context from API server #750

Merged
merged 1 commit into from Sep 11, 2022

Conversation

julienduchesne
Copy link
Contributor

Currently, if you have two contexts:

  • my-cluster-dev
  • my-cluster and you try to apply to my-cluster, it will match the first one

Currently, if you have two contexts:
- my-cluster-dev
- my-cluster
and you try to apply to `my-cluster`, it will match the first one
@julienduchesne julienduchesne requested a review from a team September 7, 2022 17:17
Copy link
Member

@iainlane iainlane left a comment

Choose a reason for hiding this comment

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

cheers, looks fine but I think you could avoid the regex at least in this case, maybe in all the others (shouldn't they all be an exact match?)

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

Successfully merging this pull request may close these issues.

None yet

2 participants