mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Cleanup Namespace.isControlledByHNC
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
f0e0dd1ba7
commit
bdc42901ba
@ -43,9 +43,7 @@ export class Namespace extends KubeObject<
|
|||||||
}
|
}
|
||||||
|
|
||||||
isControlledByHNC() {
|
isControlledByHNC() {
|
||||||
const hierarchicalNamesaceControllerLabel = "hnc.x-k8s.io/included-namespace=true";
|
return this.getLabels().includes("hnc.x-k8s.io/included-namespace=true");
|
||||||
|
|
||||||
return this.getLabels().find(label => label === hierarchicalNamesaceControllerLabel);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user