Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,18 @@ def is_istio_enabled(self, pod: V1Pod) -> bool:
if not pod:
return False

remote_pod = self.pod_manager.read_pod(pod)
try:
remote_pod = self.pod_manager.read_pod(pod)
except ApiException as e:
if e.status == 404:
Comment thread
Miretpl marked this conversation as resolved.
# Pod was likely GC'd between the trigger firing and re-entry
log.warning(
"Pod %s/%s not found during istio check.",
pod.metadata.namespace,
pod.metadata.name,
)
return False
raise e

return any(container.name == self.ISTIO_CONTAINER_NAME for container in remote_pod.spec.containers)

Expand Down
Loading