From 112c11d8890639c37e800fc007d14f492ae1b61d Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Fri, 28 Jul 2023 15:54:59 -0400 Subject: [PATCH] Add skip_provider_registration to azure scaffolds A user specifically wanted to bypass this, and should be easy to do via workspace context. --- .../core/priv/scaffolds/terraform/providers/0.1.0/azure.eex | 6 ++++++ .../core/priv/scaffolds/terraform/providers/0.1.1/azure.eex | 6 ++++++ .../core/priv/scaffolds/terraform/providers/0.1.2/azure.eex | 6 ++++++ .../core/priv/scaffolds/terraform/providers/0.1.3/azure.eex | 6 ++++++ apps/core/priv/scaffolds/terraform/providers/azure.eex | 6 ++++++ 5 files changed, 30 insertions(+) diff --git a/apps/core/priv/scaffolds/terraform/providers/0.1.0/azure.eex b/apps/core/priv/scaffolds/terraform/providers/0.1.0/azure.eex index 330bf7f85..abfee3498 100644 --- a/apps/core/priv/scaffolds/terraform/providers/0.1.0/azure.eex +++ b/apps/core/priv/scaffolds/terraform/providers/0.1.0/azure.eex @@ -19,7 +19,13 @@ terraform { } provider "azurerm" { + {{- if .Values.Context.skipProviderRegistration }} + features { + skip_provider_registration = true + } + {{- else }} features {} + {{- end }} } {{ if .Values.ClusterCreated }} diff --git a/apps/core/priv/scaffolds/terraform/providers/0.1.1/azure.eex b/apps/core/priv/scaffolds/terraform/providers/0.1.1/azure.eex index 1a78fee51..c682a92a9 100644 --- a/apps/core/priv/scaffolds/terraform/providers/0.1.1/azure.eex +++ b/apps/core/priv/scaffolds/terraform/providers/0.1.1/azure.eex @@ -19,7 +19,13 @@ terraform { } provider "azurerm" { + {{- if .Values.Context.skipProviderRegistration }} + features { + skip_provider_registration = true + } + {{- else }} features {} + {{- end }} } {{ if .Values.ClusterCreated }} diff --git a/apps/core/priv/scaffolds/terraform/providers/0.1.2/azure.eex b/apps/core/priv/scaffolds/terraform/providers/0.1.2/azure.eex index 58387ba26..13441d54d 100644 --- a/apps/core/priv/scaffolds/terraform/providers/0.1.2/azure.eex +++ b/apps/core/priv/scaffolds/terraform/providers/0.1.2/azure.eex @@ -19,7 +19,13 @@ terraform { } provider "azurerm" { + {{- if .Values.Context.skipProviderRegistration }} + features { + skip_provider_registration = true + } + {{- else }} features {} + {{- end }} } {{ if .Values.ClusterCreated }} diff --git a/apps/core/priv/scaffolds/terraform/providers/0.1.3/azure.eex b/apps/core/priv/scaffolds/terraform/providers/0.1.3/azure.eex index f2fbff1c5..be910f577 100644 --- a/apps/core/priv/scaffolds/terraform/providers/0.1.3/azure.eex +++ b/apps/core/priv/scaffolds/terraform/providers/0.1.3/azure.eex @@ -19,7 +19,13 @@ terraform { } provider "azurerm" { + {{- if .Values.Context.skipProviderRegistration }} + features { + skip_provider_registration = true + } + {{- else }} features {} + {{- end }} } {{ if .Values.ClusterCreated }} diff --git a/apps/core/priv/scaffolds/terraform/providers/azure.eex b/apps/core/priv/scaffolds/terraform/providers/azure.eex index 795491602..e9200562c 100644 --- a/apps/core/priv/scaffolds/terraform/providers/azure.eex +++ b/apps/core/priv/scaffolds/terraform/providers/azure.eex @@ -19,7 +19,13 @@ terraform { } provider "azurerm" { + {{- if .Values.Context.skipProviderRegistration }} + features { + skip_provider_registration = true + } + {{- else }} features {} + {{- end }} } {{ if .Values.ClusterCreated }}