mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix permissions issue on ServiceDetails under RBAC (#3433)
- Only watch the namespace that the service is in instead of all of them Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
70448159d3
commit
c590bccffa
@ -39,9 +39,12 @@ interface Props extends KubeObjectDetailsProps<Service> {
|
||||
@observer
|
||||
export class ServiceDetails extends React.Component<Props> {
|
||||
componentDidMount() {
|
||||
const { object: service } = this.props;
|
||||
|
||||
disposeOnUnmount(this, [
|
||||
kubeWatchApi.subscribeStores([endpointStore], {
|
||||
preload: true,
|
||||
namespaces: [service.getNs()],
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user