From a99a6daa35fdf5b1c9442fb4a28e9b83ebede41e Mon Sep 17 00:00:00 2001 From: Michael Schilonka Date: Fri, 12 Aug 2022 18:28:15 +0200 Subject: [PATCH] fix: move namespace selection --- getdeck/sources/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/getdeck/sources/utils.py b/getdeck/sources/utils.py index 13d2d1e..ec5cbff 100644 --- a/getdeck/sources/utils.py +++ b/getdeck/sources/utils.py @@ -38,10 +38,6 @@ def prepare_k8s_workload_for_deck( ) continue - fetcher_context.strategy = strategy( - deckfile.file_path, source, config, namespace - ) - # if a source, such as Helm, specifies another namespace logger.debug(source) if hasattr(source, "namespace"): @@ -49,6 +45,10 @@ def prepare_k8s_workload_for_deck( else: namespace = deck.namespace or "default" + fetcher_context.strategy = strategy( + deckfile.file_path, source, config, namespace + ) + # fetch source files source_files = fetcher_context.fetch_source_files() generated_deck.files.extend(source_files)