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

Remove the other cli parameters #336

Merged
merged 10 commits into from
Jan 31, 2023

Conversation

changweige
Copy link
Member

In this stage, we're going the remove other not frequently used CLI parameters and let e2e test adapt it.

Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
@codecov-commenter
Copy link

codecov-commenter commented Jan 30, 2023

Codecov Report

Base: 28.97% // Head: 28.30% // Decreases project coverage by -0.67% ⚠️

Coverage data is based on head (1eadfda) compared to base (962358f).
Patch coverage: 75.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #336      +/-   ##
==========================================
- Coverage   28.97%   28.30%   -0.67%     
==========================================
  Files          37       37              
  Lines        3707     3674      -33     
==========================================
- Hits         1074     1040      -34     
- Misses       2513     2514       +1     
  Partials      120      120              
Impacted Files Coverage Δ
config/config.go 9.18% <0.00%> (+0.18%) ⬆️
config/default.go 0.00% <0.00%> (ø)
cmd/containerd-nydus-grpc/pkg/command/flags.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
@@ -61,6 +61,7 @@ func (c *SnapshotterConfig) FillUpWithDefaults() error {
if daemonConfig.NydusdConfigPath == "" {
daemonConfig.NydusdConfigPath = defaultNydusDaemonConfigPath
}
daemonConfig.RecoverPolicy = "restart"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe make restart, failover as constant?

Copy link
Member Author

Choose a reason for hiding this comment

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

We already have the ReoverPolicy custom type definition which is an alias of int. So let's use the parse String() method here rather literal string

@imeoer
Copy link
Collaborator

imeoer commented Jan 30, 2023

others LGTM.

It is a more sutible package to accommodate the logics

Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
@imeoer imeoer merged commit 89aa69e into containerd:main Jan 31, 2023
@changweige changweige deleted the remove-other-cli-parameters branch February 6, 2023 06:18
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.

None yet

3 participants