Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3790 +/- ##
==========================================
- Coverage 25.52% 25.51% -0.02%
==========================================
Files 660 663 +3
Lines 42636 42673 +37
==========================================
+ Hits 10884 10889 +5
- Misses 30749 30783 +34
+ Partials 1003 1001 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9bbeb3f to
7b9ea0b
Compare
| @@ -0,0 +1,104 @@ | |||
| package container | |||
There was a problem hiding this comment.
Anything with "test" in name is suspicious by definition, better name it policy.go
There was a problem hiding this comment.
Here I mean it's pretty easy to confuse it with policy_test.go that'd be a test file, test_policy.go is not, but it looks so close that we're better not name it this way.
| ) | ||
|
|
||
| var testPolicyCmd = &cobra.Command{ | ||
| Use: "test-policy", |
There was a problem hiding this comment.
This can also be policy to me. Maybe policy try like we have acl basic print, although here it's application to a particular network that matters. I'm open to other suggestions, but I'd try to avoid test as well.
There was a problem hiding this comment.
Are you suggesting a separate policy command with a single try command?
There was a problem hiding this comment.
Yes. Maybe some other policy things could be done in future. But I'd like to hear @carpawell and @cthulhu-rider as well.
There was a problem hiding this comment.
i can imagine serverless container policy parse --policy 'EC 3/1 CBF 2 SELECT ...'. Taking this into account, container policy try seems better
at the same time, try seems too abstract to me. I suggest container policy apply
There was a problem hiding this comment.
if it is possible not to use - in a command name and there is subcomand relation (policy is a common thing, try is one of the things that can be done with policies), i would vote for policy try
There was a problem hiding this comment.
I'm in favor of the policy try/apply/check command.
@roman-khimov Which one should we choose?
2b79a01 to
b430c89
Compare
Add a CLI utility to validate container policies and display nodes that are policy-compliant in the current epoch. Closes #3626. Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Closes #3626.