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

Add types to the GetKubeconfigRequest #3614

Merged
merged 4 commits into from
Nov 14, 2023
Merged

Conversation

foot
Copy link
Collaborator

@foot foot commented Nov 10, 2023

What changed?

  • Add some types to the get-kubeconfig helper fns in the UI

Why was this change made?

So we get a nice type error if this API endpoint changes in the future

How was this change implemented?

  • Pulling out the getKubeconfig into its own hook to simplify some prop drilling we were doing.
  • Use Required<> to make all the params in GetKubeconfigRequest required (the proto-ts-gen stuff makes everything optional)

How did you validate the change?

  • Tests pass
  • tilt up, capv cluster, Get kubeconfig still works

Release notes

Documentation Changes

Other follow ups

@foot foot force-pushed the add-types-to-get-kubeconfig branch from f65c4b5 to a835aea Compare November 10, 2023 13:33
@foot foot added the exclude from release notes Use this label to exclude a PR from the release notes label Nov 10, 2023
@foot foot marked this pull request as ready for review November 10, 2023 13:34
@foot foot requested a review from ahussein3 November 10, 2023 13:34
@ahussein3
Copy link
Contributor

LGTM

@foot foot merged commit d0fd3d2 into main Nov 14, 2023
10 checks passed
@foot foot deleted the add-types-to-get-kubeconfig branch November 14, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from release notes Use this label to exclude a PR from the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants