Skip to content

Commit d0d1dd8

Browse files
authored
fix(controller): fix pod unhealthy do not rollback
1 parent f3ba668 commit d0d1dd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • rootfs/scheduler/resources

rootfs/scheduler/resources/pod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def _handle_not_ready_pods(self, namespace, labels):
748748
for event in self.events(pod):
749749
if event['reason'] == 'Unhealthy':
750750
# strip out whitespaces on either side
751-
message = "\n".join([x.strip() for x in event['message'].split("\n")])
751+
message = "\n".join([x.strip() for x in event['note'].split("\n")])
752752
raise KubeException(message)
753753

754754
def _get_probe_timeout(self, probe):

0 commit comments

Comments
 (0)