-
Notifications
You must be signed in to change notification settings - Fork 90
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
testutil/compose: implement v0 define command #569
Conversation
Codecov Report
@@ Coverage Diff @@
## main #569 +/- ##
==========================================
+ Coverage 54.42% 54.48% +0.05%
==========================================
Files 90 92 +2
Lines 8577 8634 +57
==========================================
+ Hits 4668 4704 +36
- Misses 3267 3283 +16
- Partials 642 647 +5
Continue to review full report at Codecov.
|
type vcType string | ||
|
||
const ( | ||
vcMock vcType = "mock" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can remove vc
prefix since it's already part of the type
vcMock vcType = "mock" | |
mock vcType = "mock" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to use common prefixes for enum
func newDefineCmd() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "define", | ||
Short: "Define a cluster; including both keygen and running definitions", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
Short: "Define a cluster; including both keygen and running definitions", | |
Short: "Define a cluster, including both generating keys and running definitions", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is keygen definition, not actual key generation
Implements the first iteration of the
compose define
command. It just uses default configuration for now and outputs thecompose.yml
file. Adding webui can be done later.category: feature
ticket: #568