-
Notifications
You must be signed in to change notification settings - Fork 204
Add implementation for pipectl tool #1241
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
Conversation
|
/cc @khanhtc1202 |
|
The following files are not gofmt-ed. By commenting pkg/app/pipectl/cmd/deployment/waitstatus_test.go--- pkg/app/pipectl/cmd/deployment/waitstatus_test.go.orig
+++ pkg/app/pipectl/cmd/deployment/waitstatus_test.go
@@ -42,8 +42,8 @@
name: "ok",
statuses: []string{"SUCCESS", "PLANNED"},
expected: map[model.DeploymentStatus]struct{}{
- model.DeploymentStatus_DEPLOYMENT_SUCCESS: struct{}{},
- model.DeploymentStatus_DEPLOYMENT_PLANNED: struct{}{},
+ model.DeploymentStatus_DEPLOYMENT_SUCCESS: {},
+ model.DeploymentStatus_DEPLOYMENT_PLANNED: {},
},
},
}
|
pipecd-bot
left a comment
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.
|
Code coverage for golang is
|
|
I just realized that we need a |
|
The following files are not gofmt-ed. By commenting pkg/app/pipectl/client/deployment.go--- pkg/app/pipectl/client/deployment.go.orig
+++ pkg/app/pipectl/client/deployment.go
@@ -20,9 +20,10 @@
"strings"
"time"
+ "go.uber.org/zap"
+
"github.com/pipe-cd/pipe/pkg/app/api/service/apiservice"
"github.com/pipe-cd/pipe/pkg/model"
- "go.uber.org/zap"
)
// WaitDeploymentStatuses waits a given deployment until it reaches one of the specified statuses.
|
| StacktraceKey: "stacktrace", | ||
| LineEnding: zapcore.DefaultLineEnding, | ||
| EncodeLevel: encodeLevel, | ||
| EncodeTime: HumanizeTimeEncoder, |
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.
Removed TimeEncoder from humanize mode to simplify the log output of CLI.
|
Code coverage for golang is |
| func newAddCommand(root *command) *cobra.Command { | ||
| c := &add{ | ||
| root: root, | ||
| gitPathConfigFileName: ".pipe.yaml", |
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 feel like it should be changeable via --config-file-name or something like that. And the default value should refer to pkg.model.DefaultDeploymentConfigFileName.
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.
Sorry, I just now found it has been already changeable.
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 changed to use the value defined in the model package and simplified the flags.
|
Code coverage for golang is |
|
/lgtm |
|
/approve |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1199
Does this PR introduce a user-facing change?: