From 4234b2893a4031f63b46fbfc290cdf244b01aec7 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Sat, 29 Jun 2024 22:02:49 +0000 Subject: [PATCH] Remove unnecessary diffs --- flux_local/command.py | 1 - flux_local/git_repo.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/flux_local/command.py b/flux_local/command.py index 572dc9e0..7084fbdc 100644 --- a/flux_local/command.py +++ b/flux_local/command.py @@ -96,7 +96,6 @@ async def run(self, stdin: bytes | None = None) -> bytes: errors.append(out.decode("utf-8")) if err: errors.append(err.decode("utf-8")) - _LOGGER.debug("stdin=%s", stdin) _LOGGER.debug("\n".join(errors)) raise self.exc("\n".join(errors)) return out diff --git a/flux_local/git_repo.py b/flux_local/git_repo.py index ec03cd77..f9f712b0 100644 --- a/flux_local/git_repo.py +++ b/flux_local/git_repo.py @@ -507,6 +507,7 @@ async def kustomization_traversal( _LOGGER.debug("Already visited %s", path) continue visited_paths.add(path) + tasks.append(visit_kustomization(selector, builder, path, visit_ks)) # Find new kustomizations @@ -618,8 +619,7 @@ async def build_kustomization( if not kinds: return - regexp = f"kind=^({'|'.join(kinds)})$" - docs = await cmd.grep(regexp).objects( + docs = await cmd.filter_resources(kinds).objects( target_namespace=kustomization.target_namespace )