Skip to content

Commit

Permalink
Patch frontdoor permadiff (#2014)
Browse files Browse the repository at this point in the history
fixes #1421 by patching the
upstream resource to be computed as the provider sets a value for it.
This is needed for
pulumi/pulumi-terraform-bridge#1936

works around
hashicorp/terraform-provider-azurerm#25911

issue for patch: #2015

upstream PR:
hashicorp/terraform-provider-azurerm#25912
  • Loading branch information
VenelinMartinov committed May 9, 2024
1 parent 86f4e21 commit c70fbe2
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
18 changes: 18 additions & 0 deletions patches/0011-set-frontdoor-backend-pool-settings-to-computed.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Venelin <venelin@pulumi.com>
Date: Wed, 8 May 2024 18:25:30 +0100
Subject: [PATCH] set frontdoor backend pool settings to computed


diff --git a/internal/services/frontdoor/frontdoor_resource.go b/internal/services/frontdoor/frontdoor_resource.go
index 8beaebb89e..23519eaa45 100644
--- a/internal/services/frontdoor/frontdoor_resource.go
+++ b/internal/services/frontdoor/frontdoor_resource.go
@@ -2072,6 +2072,7 @@ func resourceFrontDoorSchema() map[string]*pluginsdk.Schema {
"backend_pool_settings": {
Type: pluginsdk.TypeList,
Optional: true,
+ Computed: true,
Elem: &pluginsdk.Resource{
Schema: map[string]*pluginsdk.Schema{
"enforce_backend_pools_certificate_name_check": {
1 change: 1 addition & 0 deletions provider/cmd/pulumi-resource-azure/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -185951,6 +185951,7 @@
"backendPoolHealthProbesMap",
"backendPoolLoadBalancings",
"backendPoolLoadBalancingSettingsMap",
"backendPoolSettings",
"backendPoolsMap",
"cname",
"explicitResourceOrders",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/nodejs/frontdoor/frontdoor.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/python/pulumi_azure/frontdoor/frontdoor.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c70fbe2

Please sign in to comment.