Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zubenkoivan committed May 8, 2024
1 parent d6328a8 commit 461ebe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform_monitoring/kube_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class ContainerStatus:
state: t.Mapping[str, t.Any] = field(default_factory=dict)
last_state: t.Mapping[str, t.Any] = field(default_factory=dict)

pod_restart_policy: PodRestartPolicy = PodRestartPolicy.ALWAYS
pod_restart_policy: PodRestartPolicy = PodRestartPolicy.NEVER

@classmethod
def from_primitive(cls, payload: JSON) -> t.Self:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_kube.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_container_status(self) -> None:
pod = Pod.from_primitive(
{
"metadata": {"name": "pod"},
"spec": {},
"spec": {"restartPolicy": "Never"},
"status": {
"containerStatuses": [{"name": ""}, {"name": "testcontainer"}]
},
Expand Down

0 comments on commit 461ebe3

Please sign in to comment.