-
Notifications
You must be signed in to change notification settings - Fork 50
Policy probe util #3790
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
base: master
Are you sure you want to change the base?
Policy probe util #3790
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3790 +/- ##
==========================================
- Coverage 25.68% 25.67% -0.01%
==========================================
Files 660 661 +1
Lines 42203 42197 -6
==========================================
- Hits 10838 10835 -3
+ Misses 30383 30379 -4
- Partials 982 983 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9bbeb3f to
7b9ea0b
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>
| @@ -0,0 +1,104 @@ | |||
| package container | |||
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.
Anything with "test" in name is suspicious by definition, better name it policy.go
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you suggesting a separate policy command with a single try command?
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.
Yes. Maybe some other policy things could be done in future. But I'd like to hear @carpawell and @cthulhu-rider as well.
Closes #3626.