Skip to content

Commit

Permalink
Feature/skip terraform if any (hitachienergy#426)
Browse files Browse the repository at this point in the history
* Item: hitachienergy#422 Desc: Add missing ports for prometheus and grafana

* Item: hitachienergy#424 Desc: Automatically pass infrastructure creation when provider is any
  • Loading branch information
erzetpe authored Aug 7, 2019
1 parent d98cc04 commit db9d7f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/epicli/cli/engine/EpiphanyEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def apply(self):

self.process_infrastructure_docs()

if not self.skip_infrastructure:
if not (self.skip_infrastructure or self.is_provider_any(self.cluster_model)):
# Generate terraform templates
with TerraformTemplateGenerator(self.cluster_model, self.infrastructure_docs) as template_generator:
template_generator.run()
Expand Down Expand Up @@ -131,3 +131,6 @@ def dry_run(self):

return [*self.input_docs, *self.configuration_docs]

@staticmethod
def is_provider_any(cluster_model):
return cluster_model["provider"] == "any"

0 comments on commit db9d7f3

Please sign in to comment.