mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
k8s - safely retrieve object data
This commit is contained in:
parent
3fea652b5d
commit
4176411d18
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ class IngressController(Controller):
|
|||
obj = event["object"]
|
||||
metadata = obj.metadata if obj else None
|
||||
annotations = metadata.annotations if metadata else None
|
||||
data = obj.data if obj else None
|
||||
data = getattr(obj, 'data', None) if obj else None
|
||||
if not obj:
|
||||
return False
|
||||
if obj.kind == "Pod":
|
||||
|
|
|
|||
Loading…
Reference in a new issue