aquasecurity / starboard-octant-plugin

Octant plugin for viewing Starboard security information
https://github.com/aquasecurity/starboard
Apache License 2.0
57 stars 12 forks source link

Error displayed in workload summary tab when ConfigAuditReport is not defined #60

Closed danielpacak closed 4 years ago

danielpacak commented 4 years ago

We should handle it gracefully. It might happen that only VulnerabilityReport is defined (e.g. Starboard Operator) and the plugin should not crash.

print summary tab: plugin manager: print runner failed: handle object: running on starboard-octant-plugin: print object with plugin "starboard-octant-plugin": grpc client print: rpc error: code = Unknown desc = grpc server print: listing config audit reports: rpc error: code = Unknown desc = check access to list CacheKey[Namespace='starboard-operator', APIVersion='aquasecurity.github.io/v1alpha1', Kind='ConfigAuditReport', Selector='starboard.resource.kind=Pod,starboard.resource.name=nginx']: unable to get resource for group kind ConfigAuditReport.aquasecurity.github.io: no matches for kind "ConfigAuditReport" in group "aquasecurity.github.io"