Closed Iceber closed 1 year ago
/cc @klihub PTAL, Thanks
Patch coverage has no change and project coverage change: +0.50
:tada:
Comparison is base (
2a8b655
) 63.83% compared to head (ed9096d
) 64.33%.:exclamation: Current head ed9096d differs from pull request most recent head 4a4cea6. Consider uploading reports for the commit 4a4cea6 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
The environment variable
NRI_PLUGIN_NAME
actually represents name in the plugin https://github.com/containerd/nri/blob/83295992ed466e5589a1a83ba3ad2bd6b6feb199/pkg/stub/stub.go#L273-L280 https://github.com/containerd/nri/blob/83295992ed466e5589a1a83ba3ad2bd6b6feb199/pkg/stub/stub.go#L450-L452so if we pass
plugin name
(< idx >-< base name >
), the log will print out 'plugin name' with duplicateidx
.plugin name
variable/field in plugin and adaptation.stub.name
stub.idx
stub.Name()
->stub.idx
+ "-" +stub.name