-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add CNI configuration size limit #119
Conversation
4f6d815
to
135001e
Compare
Signed-off-by: Michael Zappa <michael.zappa@gmail.com>
135001e
to
8f59f25
Compare
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.
couple early comments
file, err := os.Open(filepath) | ||
|
||
if err != nil { | ||
return false, err |
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.
not there is .. fine should fail to exist in a different way
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.
by is fine, I mean since the file does not exist it is not larger than max and should be ignored here .. just return true...
fileInfo, err := file.Stat() | ||
|
||
if err != nil { | ||
return false, err |
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.
same..
Co-authored-by: Mike Brown <brownwm@us.ibm.com> Signed-off-by: Mike Zappa <michael.zappa@gmail.com>
Co-authored-by: Mike Brown <brownwm@us.ibm.com> Signed-off-by: Mike Zappa <michael.zappa@gmail.com>
No description provided.