Skip to content

Commit

Permalink
Merge pull request #189 from declum/master
Browse files Browse the repository at this point in the history
Fixes 188
  • Loading branch information
rennokki authored Feb 3, 2022
2 parents 37acf2d + d9e40c5 commit e8a36ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Kinds/K8sResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ public function exists(array $query = ['pretty' => 1]): bool
try {
$this->get($query);
} catch (KubernetesAPIException $e) {
return false;
if ($e->getCode() === 404) {
return false;
}

throw $e;
}

return true;
Expand Down

0 comments on commit e8a36ef

Please sign in to comment.