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

20 create generic Kube source #33

Merged
merged 25 commits into from
May 16, 2023
Merged

Conversation

dylanratcliffe
Copy link
Member

@dylanratcliffe dylanratcliffe commented May 15, 2023

Refactor Kube

Fixes #19
Fixes #20
Fixes #21

Note: This is a monster and I don't expect you to review everything. The main thing here is the developer experience and whether or not I've missed anything

This refactors the old kubernetes source to use much more modern standards (like Go generics), this means each source is very simple to write and the vast majority of the code is shared, with each source basically only defining the links that should be inlcuded.

Explainer videos:

How the generics work

2023-05-15.16-16-50.mp4

Developer experience writing a source

2023-05-15.16-19-35.mp4

Testing

2023-05-15.16-21-26.mp4

Running

2023-05-15.16-26-00.mp4

Things left to do

@dylanratcliffe dylanratcliffe linked an issue May 15, 2023 that may be closed by this pull request
4 tasks
@dylanratcliffe dylanratcliffe requested a review from DavidS-ovm May 15, 2023 15:28
@dylanratcliffe dylanratcliffe marked this pull request as ready for review May 15, 2023 15:28
Copy link
Contributor

@DavidS-ovm DavidS-ovm left a comment

Choose a reason for hiding this comment

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

a few comments for fit and polish

sources/main.go Outdated Show resolved Hide resolved
.github/workflows/test-build.yml Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
.vscode/launch.json Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
@dylanratcliffe dylanratcliffe requested a review from DavidS-ovm May 16, 2023 07:22
@dylanratcliffe dylanratcliffe merged commit 2362ade into main May 16, 2023
@dylanratcliffe dylanratcliffe deleted the 20-create-generic-kube-source branch May 16, 2023 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants