cuddly-van-73431
09/24/2025, 3:42 PMstore.dispatch('cluster/request', { url })
with a url like: k8s/clusters/local/v1/apps.deployments?labelSelector=<http://app.kubernetes.io/component=test,app.kubernetes.io/name=test|app.kubernetes.io/component=test,app.kubernetes.io/name=test>
but instead of just returning the the filtered deployments, it returns all deployments within that cluster.
This was previously working, so just wondering if there is a different approach we should take via the extension? Right now I am using local js filtering to get functionality working.stocky-account-63046
09/25/2025, 8:53 AMfindLabelSelector
which takes into account that change in api, and will also handle if server-side pagination is enabled or disabledbusy-ability-54059
09/25/2025, 9:18 AMconst response = await this.$store.dispatch('cluster/findLabelSelector', {
type: SERVICE,
matching: { labelSelector: { matchLabels: { app: 'longhorn-ui' } } },
opt: { transient: true }
});
return this.$dispatch('findLabelSelector', {
type: POD,
matching: {
namespace: this.metadata.namespace,
labelSelector: { matchExpressions: this.podMatchExpression },
},
});
or
return await this.$dispatch('findLabelSelector', {
type: POD,
matching: {
namespace: this.metadata.namespace,
labelSelector: { matchExpressions: parse(this.podRelationship?.selector) },
}
});
cuddly-van-73431
09/25/2025, 4:01 PM