Skip to content

Commit 819d7d0

Browse files
Add skip_provider_registration to azure scaffolds
A user specifically wanted to bypass this, and should be easy to do via workspace context.
1 parent 8b5be4a commit 819d7d0

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

apps/core/priv/scaffolds/terraform/providers/0.1.0/azure.eex

+6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ terraform {
1919
}
2020

2121
provider "azurerm" {
22+
{{- if .Values.Context.skipProviderRegistration }}
23+
features {
24+
25+
}
26+
{{- else }}
2227
features {}
28+
{{- end }}
2329
}
2430

2531
{{ if .Values.ClusterCreated }}

apps/core/priv/scaffolds/terraform/providers/0.1.1/azure.eex

+6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ terraform {
1919
}
2020

2121
provider "azurerm" {
22+
{{- if .Values.Context.skipProviderRegistration }}
23+
features {
24+
skip_provider_registration = true
25+
}
26+
{{- else }}
2227
features {}
28+
{{- end }}
2329
}
2430

2531
{{ if .Values.ClusterCreated }}

apps/core/priv/scaffolds/terraform/providers/0.1.2/azure.eex

+6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ terraform {
1919
}
2020

2121
provider "azurerm" {
22+
{{- if .Values.Context.skipProviderRegistration }}
23+
features {
24+
skip_provider_registration = true
25+
}
26+
{{- else }}
2227
features {}
28+
{{- end }}
2329
}
2430

2531
{{ if .Values.ClusterCreated }}

apps/core/priv/scaffolds/terraform/providers/0.1.3/azure.eex

+6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ terraform {
1919
}
2020

2121
provider "azurerm" {
22+
{{- if .Values.Context.skipProviderRegistration }}
23+
features {
24+
skip_provider_registration = true
25+
}
26+
{{- else }}
2227
features {}
28+
{{- end }}
2329
}
2430

2531
{{ if .Values.ClusterCreated }}

apps/core/priv/scaffolds/terraform/providers/azure.eex

+6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ terraform {
1919
}
2020

2121
provider "azurerm" {
22+
{{- if .Values.Context.skipProviderRegistration }}
23+
features {
24+
skip_provider_registration = true
25+
}
26+
{{- else }}
2227
features {}
28+
{{- end }}
2329
}
2430

2531
{{ if .Values.ClusterCreated }}

0 commit comments

Comments
 (0)