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

Add CNI configuration size limit #119

Closed
wants to merge 4 commits into from

Conversation

MikeZappa87
Copy link
Contributor

No description provided.

@MikeZappa87 MikeZappa87 force-pushed the mzappa/limitfilesize branch 2 times, most recently from 4f6d815 to 135001e Compare July 23, 2024 18:50
Signed-off-by: Michael Zappa <michael.zappa@gmail.com>
@MikeZappa87 MikeZappa87 force-pushed the mzappa/limitfilesize branch from 135001e to 8f59f25 Compare July 23, 2024 19:46
Copy link
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

couple early comments

opts.go Outdated Show resolved Hide resolved
opts.go Outdated Show resolved Hide resolved
file, err := os.Open(filepath)

if err != nil {
return false, err
Copy link
Member

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

Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

same..

MikeZappa87 and others added 3 commits July 23, 2024 13:52
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>
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.

2 participants