-
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
CNI_ARGS with plugin chaining #560
Comments
Good spot. I don't see any alternative to effectively defaulting |
@bboreham I agree, but for now I don't come up with how to disable the check only in a chained case, because when the In addition, not only in chained case, similar case could be happen when both IPAM and interface CNI (e.g. bridge) consume CNI_ARGS in the future, hence I suppose we could just remove the check. Any thoughts? |
We are seeing this exact situation when passing an (Ref sylabs/singularity#337) (We have started appending IgnoreUnknown=1) |
Currently
pkg/types/args.go
expects each plugin consumes all CNI_ARGS given from user.For example, when host-local is invoked with CNI_ARGS="IP=1.1.1.1;TESTARG=TESTVAL", host-local is failed because 'TESTARG=TESTVAL' is not used in host-local plugin.
In plugin chaining case, we could not expect it because some CNI_ARGS will be consumed other CNI plugins.
For example, in the following netconf, user may add CNI_ARGS="IP=1.1.1.1;TESTARG=TESTVAL": IP for host-local and TESTARG for METAPLUGIN, however current
pkg/types/args.go
raise error at host-local because TESTARG is unknown to host-local.With
IgnoreUnknown=true
, we could skip the check, however I suppose we could remove this check or we should write 'IgnoreUnknown' in somewhere.The text was updated successfully, but these errors were encountered: