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

Refactored deployer code to unexport stuff. #78

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Conversation

mwhittaker
Copy link
Member

Previously, impl.KubeConfig, impl.BuildAndUploadDockerImage, and impl.GenerateYAMLs were all exported and used by cmd/weaver-kube/deploy.go. This PR moves the deploy.go code into internal/impl/deploy.go to unexport these things, and instead exports a single Deploy function.

I also moved all user-provided config into a config.go file.

@mwhittaker mwhittaker self-assigned this Oct 19, 2023
Copy link
Collaborator

@rgrandl rgrandl left a comment

Choose a reason for hiding this comment

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

Nice change. I like that we have a separate config file given that the config is growing.

Base automatically changed from remove_internal_port to main October 19, 2023 23:42
@mwhittaker
Copy link
Member Author

Nice change. I like that we have a separate config file given that the config is growing.

Thanks, me too!

Previously, `impl.KubeConfig`, `impl.BuildAndUploadDockerImage`, and
`impl.GenerateYAMLs` were all exported and used by
`cmd/weaver-kube/deploy.go`. This PR moves the `deploy.go` code into
`internal/impl/deploy.go` to unexport these things, and instead exports
a single `Deploy` function.

I also moved all user-provided config into a `config.go` file.
@mwhittaker mwhittaker merged commit 0b12251 into main Oct 19, 2023
9 of 10 checks passed
@mwhittaker mwhittaker deleted the unexport_stuff branch October 19, 2023 23:50
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.

2 participants