Skip to content

Commit

Permalink
Downed K8s API causes charms to error rather than warn
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Apr 17, 2023
1 parent c952360 commit 2e8fd39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ops/manifests/manifest.py
Expand Up @@ -235,6 +235,9 @@ def installed_resources(self) -> FrozenSet[HashableResource]:
obj.name,
namespace=obj.namespace,
)
except (ManifestClientError):
log.exception(f"Cannot connect to the api endpoint, marking ({obj}) as missing")
continue
except (ApiError, HTTPError):
log.exception(f"Didn't find expected resource installed ({obj})")
continue
Expand Down

0 comments on commit 2e8fd39

Please sign in to comment.