Skip to content

Commit e8a36ef

Browse files
authored
Merge pull request #189 from declum/master
Fixes 188
2 parents 37acf2d + d9e40c5 commit e8a36ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Kinds/K8sResource.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ public function exists(array $query = ['pretty' => 1]): bool
9898
try {
9999
$this->get($query);
100100
} catch (KubernetesAPIException $e) {
101-
return false;
101+
if ($e->getCode() === 404) {
102+
return false;
103+
}
104+
105+
throw $e;
102106
}
103107

104108
return true;

0 commit comments

Comments
 (0)