-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Spec, libcni: add disableGC flag #1090
Conversation
Should we modify pkg/types/types.go to add |
Same question. However I don't see any references of type |
This is not private scope, just public scope hence other repos use that, like https://github.com/k8snetworkplumbingwg/multus-cni/blob/75c02450209c749c67b571d1add5b0cf5b39d732/pkg/types/types.go#L101 So removing it causes lots of changes out side of this repo, under CNI plugins. So we should not do that. |
If there's no cache dir, there are no cached attachments to return. No sense in propagating that error. Signed-off-by: Casey Callendrello <[email protected]>
This flag allows administrators to disable garbage collection for exceptional circumstances. Signed-off-by: Casey Callendrello <[email protected]>
@henry118 Agreed, NetConfList doesn't seem to be used internally, so adding |
This allows administrators to disable GC behavior. Signed-off-by: Casey Callendrello <[email protected]>
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.
LGTM
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.
Looks good to me.
This allows administrators to disable garbage collection in exceptional circumstances, such as multiple runtimes sharing a network configuration.