Deprecate "isEnabledForCluster" in favor of individual enabled or visible properties for each registration

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2022-07-13 08:42:08 +03:00
1 parent 5b2c53b251
commit 05af07c09a
1 file changed
+2
@@ -90,6 +90,8 @@ export class LensRendererExtension extends LensExtension<LensRendererExtensionDe
* called when the extension is created within a cluster frame. * called when the extension is created within a cluster frame.
* *
* The default implementation is to return `true` * The default implementation is to return `true`
*
* @deprecated Switch to using "enabled" or "visible" properties in each registration together with `activeCluster`
*/ */
async isEnabledForCluster(cluster: KubernetesCluster): Promise<Boolean> { async isEnabledForCluster(cluster: KubernetesCluster): Promise<Boolean> {
return (void cluster) || true; return (void cluster) || true;