Better visibility into what's going on with the CRDs
@@ -214,7 +214,11 @@ class K8sClient():
out = []
for scenario in scenarios['items']:
out.append(scenario['spec'])
+ self.logger.info("Read %d scenarios from CRDS", len(out))
return out
except ApiException as e:
+ if e.status == 403:
+ self.logger.info("No permission to list powerfulseal CRDs. Ignoring.")
+ return []
self.logger.exception(e)
raise
