Fix kuryr-controller error for not finding created resources
If there are no resources already created, just return without further processing Change-Id: I2c433d5b4cece373004a3b4099e10b5d6e664ff4 Closes-Bug: #1893213
This commit is contained in:
parent
6df8fcb7a2
commit
1ffc938609
|
@ -56,6 +56,10 @@ class KuryrNetworkPolicyHandler(k8s_base.ResourceEventHandler):
|
|||
def _convert_old_crds(self):
|
||||
try:
|
||||
netpolicies = self.k8s.get(constants.K8S_API_CRD_KURYRNETPOLICIES)
|
||||
except exceptions.K8sResourceNotFound:
|
||||
LOG.debug("%s resource not found.",
|
||||
constants.K8S_API_CRD_KURYRNETPOLICIES)
|
||||
return
|
||||
except exceptions.K8sClientException:
|
||||
LOG.exception("Error when fetching old KuryrNetPolicy CRDs for "
|
||||
"conversion.")
|
||||
|
|
Loading…
Reference in New Issue