Browse Source

Merge "Don't crash on fetching network policy."

changes/16/755016/1
Zuul 10 months ago
committed by Gerrit Code Review
parent
commit
485a792467
  1. 4
      kuryr_kubernetes/controller/drivers/utils.py

4
kuryr_kubernetes/controller/drivers/utils.py

@ -319,8 +319,8 @@ def get_kuryrnetworkpolicy_crds(namespace=None):
LOG.exception("KuryrNetworkPolicy CRD not found")
return []
except k_exc.K8sClientException:
LOG.exception("Kubernetes Client Exception")
raise
LOG.exception("Exception during fetch KuryrNetworkPolicies. Retrying.")
raise k_exc.ResourceNotReady(knp_path)
return knps.get('items', [])

Loading…
Cancel
Save