We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 506fbcf commit a6e2febCopy full SHA for a6e2feb
rust/stackable-cockpit/src/utils/k8s/client.rs
@@ -334,12 +334,12 @@ impl Client {
334
.filter(|(_, capability)| {
335
let listing_supported = capability.supports_operation(discovery::verbs::LIST);
336
337
- let scope_matching = match namespace {
+ let capability_scope_matches = match namespace {
338
Some(_) => capability.scope == kube::discovery::Scope::Namespaced,
339
None => capability.scope == kube::discovery::Scope::Cluster,
340
};
341
342
- listing_supported && scope_matching
+ listing_supported && capability_scope_matches
343
});
344
345
for (api_resource, _) in api_resources {
0 commit comments