Skip to content

Commit

Permalink
fix: move namespace selection (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schille authored Aug 12, 2022
1 parent 42064b6 commit 3790d2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions getdeck/sources/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ 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"):
namespace = source.namespace or deck.namespace or "default"
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)
Expand Down

0 comments on commit 3790d2d

Please sign in to comment.