Move isSubnamespace method inside API

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2023-02-03 16:23:19 +03:00
1 parent db0cb45a30
commit fa87ab5157
3 files changed
+48 -38

No files matched your search

@@ -33,6 +33,10 @@ export class Namespace extends KubeObject<
getStatus() {
return this.status?.phase ?? "-";
}
isSubnamespace(){
return this.getAnnotations().find(annotation => annotation.includes("hnc.x-k8s.io/subnamespace-of"));
}
}
export class NamespaceApi extends KubeApi<Namespace> {