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

chore: rename to serverservice and add migrate and version subcommands #32

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

nicolerenee
Copy link
Member

@nicolerenee nicolerenee commented Aug 26, 2021

  • Rename to serverservice to respresent the fact this service only provides server information.
  • No longer rely on an external goose binary; this functionality is now available via the serverservice migrate comamnd.
  • Add a version subcommand to print out the current version.
  • Our production docker container is now a scratch container base with the alpine ca-certificates imported.
  • Locally make test no longer starts docker-compose for you. This is to aid when working on multiple services.
  • Upgrade build environment to go 1.17.
  • docker compose environment no longer required Bearer tokens to access by default.

@nicolerenee nicolerenee requested a review from a team as a code owner August 26, 2021 23:45
@nicolerenee nicolerenee force-pushed the renaming-is-fun branch 4 times, most recently from 25a6ff4 to 325deb0 Compare August 27, 2021 00:18
@codecov-commenter
Copy link

codecov-commenter commented Aug 27, 2021

Codecov Report

Merging #32 (238047c) into main (93f9bcf) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #32   +/-   ##
=======================================
  Coverage   72.26%   72.26%           
=======================================
  Files          21       21           
  Lines         941      941           
=======================================
  Hits          680      680           
  Misses        168      168           
  Partials       93       93           
Flag Coverage Δ
unittests 72.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
internal/httpsrv/server.go 90.56% <ø> (ø)
pkg/api/v1/attributes.go 91.25% <ø> (ø)
pkg/api/v1/pagination.go 77.77% <ø> (ø)
pkg/api/v1/router.go 80.00% <ø> (ø)
pkg/api/v1/router_server.go 49.00% <ø> (ø)
pkg/api/v1/router_server_attributes.go 38.29% <ø> (ø)
pkg/api/v1/router_server_component_type.go 43.75% <ø> (ø)
pkg/api/v1/server.go 67.56% <ø> (ø)
pkg/api/v1/server_component.go 65.51% <ø> (ø)
pkg/api/v1/server_component_type.go 100.00% <ø> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93f9bcf...238047c. Read the comment docs.

@nicolerenee
Copy link
Member Author

The repo will need to be renamed at the time of merging this PR.

- Rename to serverservice to respresent the fact this service only provides server information.
- No longer rely on an external goose binary; this functionality is now available via the `serverservice migrate` comamnd.
- Add a version subcommand to print out the current version.
- Our production docker container is now a scratch container base with the alpine ca-certificates imported.
// migrateCmd represents the migrate command
var migrateCmd = &cobra.Command{
Use: "migrate <command> [args]",
Short: "A brief description of your command",
Copy link
Member

Choose a reason for hiding this comment

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

Update short description

@nicolerenee nicolerenee merged commit 45d5624 into metal-toolbox:main Aug 27, 2021
@nicolerenee nicolerenee deleted the renaming-is-fun branch August 27, 2021 17:48
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.

3 participants