Skip to content

Commit

Permalink
Add runtime as property of Space
Browse files Browse the repository at this point in the history
  • Loading branch information
jesmg authored and angelbarrera92 committed Apr 24, 2021
1 parent d539e1a commit 3f4ea91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions k8spin_common/k8spin_common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,7 @@ def default_container_resources(self) -> list:
@property
def get_allow_incoming_network(self) -> list:
return self.obj["spec"].get("allowIncomingNetwork", {})

@property
def runtime(self) -> str:
return self.obj["spec"]["containers"].get("enforcing", {}).get("runtimeClassName")

0 comments on commit 3f4ea91

Please sign in to comment.