Skip to content

Commit

Permalink
pingdom-operator: ignore httpproxy with no annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
nefelim4ag committed Oct 27, 2022
1 parent a6323fa commit fb21adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pingdom-operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def pingdom_ingresses(self, integrations_mapping=None):
if self.is_exists_httpProxy:
for httpproxy in self.list_httpproxy_for_all_namespaces():
# Add only ingresses with pingdom operator annotations
for annotation in httpproxy["metadata"]["annotations"]:
for annotation in httpproxy["metadata"].get("annotations", []):
if annotation.startswith("pingdom-operator.io/"):
parsed = self.HttpProxy(
httpproxy, integrations_mapping)
Expand Down

0 comments on commit fb21adf

Please sign in to comment.