We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9060749 commit 0935445Copy full SHA for 0935445
cloudselect/discovery/kubernetes.py
@@ -111,8 +111,12 @@ def find(self):
111
pods = self.get_pods(cluster_id, configuration, context)
112
self.aws_restore(*aws_envs)
113
for pod in pods:
114
- if pod["status"]["phase"] in ["Running"] and any(
115
- i.match(pod["metadata"]["namespace"]) is not None for i in patterns
+ if pod["status"]["phase"] in ["Running"] and (
+ not patterns
116
+ or any(
117
+ i.match(pod["metadata"]["namespace"]) is not None
118
+ for i in patterns
119
+ )
120
):
121
for container in pod["spec"]["containers"]:
122
yield {
0 commit comments