mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix pod shell error if no access to nodes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
799482b3c4
commit
a24731a72b
2 files changed
+8
-2
No files matched your search
@@ -411,6 +411,13 @@ export class Pod extends WorkloadKubeObject {
|
||||
getNodeName() {
|
||||
return this.spec?.nodeName
|
||||
}
|
||||
|
||||
getSelectedNodeOs() {
|
||||
if (!this.spec.nodeSelector) return
|
||||
if (!this.spec.nodeSelector["kubernetes.io/os"]) return
|
||||
|
||||
return this.spec.nodeSelector["kubernetes.io/os"]
|
||||
}
|
||||
}
|
||||
|
||||
export const podsApi = new PodsApi({
|
||||
|
||||
Reference in new issue
Block a user