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

Check for error from Azure when using the private-cluster feature #270

Merged
merged 2 commits into from
Jan 3, 2023
Merged

Check for error from Azure when using the private-cluster feature #270

merged 2 commits into from
Jan 3, 2023

Conversation

oddsund
Copy link
Contributor

@oddsund oddsund commented Dec 7, 2022

Move the error check for Azure earlier, so that a well defined error is thrown on error instead of a JSONSyntax error.

The issue is that when Azure returns an error, like when there's an issue with the access to the principal used. When this happens, the stdout field will be an empty string, and the error message will be set to a non-json string.

Move the error check for Azure earlier, so that a well defined error is
thrown on error instead of a JSONSyntax error.

The issue is that when Azure returns an error, like when there's an
issue with the access to the principal used. When this happens, the
stdout field will be an empty string, and the error message will be set.
@oddsund oddsund requested a review from a team as a code owner December 7, 2022 14:09
@oddsund
Copy link
Contributor Author

oddsund commented Dec 7, 2022

@microsoft-github-policy-service agree

jaiveerk
jaiveerk previously approved these changes Dec 8, 2022
src/types/privatekubectl.ts Show resolved Hide resolved
src/types/privatekubectl.ts Show resolved Hide resolved
@github-actions
Copy link

This PR is idle because it has been open for 14 days with no activity.

@github-actions github-actions bot added the idle Inactive for 14 days label Dec 26, 2022
Copy link
Collaborator

@davidgamero davidgamero left a comment

Choose a reason for hiding this comment

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

Lgtm

@OliverMKing
Copy link
Collaborator

Going to squash and merge this. Will kick off a release sometime soon.

@OliverMKing OliverMKing merged commit dcaec01 into Azure:main Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idle Inactive for 14 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants