-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export patches to local repo (#2414)
* Export patches to local repo Skip running upstream patch export if shallow: - Git will fail if our upstream checkout is shallow (e.g. in CI). - Refactor exporting upstream patches into its own target. * Generate initial patches
- Loading branch information
1 parent
24437c0
commit e466d93
Showing
28 changed files
with
10,872 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
upstream-patches/0001-Add-TagsSchemaTrulyComputed-definition.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 37903a1ae190d03d0020cf884295dcb15c5357b4 Mon Sep 17 00:00:00 2001 | ||
From: Daniel Bradley <daniel@pulumi.com> | ||
Date: Fri, 4 Nov 2022 16:49:08 +0000 | ||
Subject: [PATCH 01/27] Add TagsSchemaTrulyComputed definition | ||
|
||
--- | ||
internal/tags/tags.go | 8 ++++++++ | ||
1 file changed, 8 insertions(+) | ||
|
||
diff --git a/internal/tags/tags.go b/internal/tags/tags.go | ||
index 30b491fc7a..ea00250a50 100644 | ||
--- a/internal/tags/tags.go | ||
+++ b/internal/tags/tags.go | ||
@@ -39,3 +39,11 @@ func TagsSchemaForceNew() *schema.Schema { | ||
Elem: &schema.Schema{Type: schema.TypeString}, | ||
} | ||
} | ||
+ | ||
+func TagsSchemaTrulyComputed() *schema.Schema { | ||
+ return &schema.Schema{ | ||
+ Type: schema.TypeMap, | ||
+ Computed: true, | ||
+ Elem: &schema.Schema{Type: schema.TypeString}, | ||
+ } | ||
+} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
From b244c2ee2834b692433a165dfbd16296bec36398 Mon Sep 17 00:00:00 2001 | ||
From: Daniel Bradley <daniel@pulumi.com> | ||
Date: Fri, 4 Nov 2022 17:03:31 +0000 | ||
Subject: [PATCH 02/27] Conns user agent | ||
|
||
Replace the useragent used for AWS client connections with a | ||
Pulumi-flavoured one. | ||
--- | ||
internal/conns/conns.go | 7 +++---- | ||
1 file changed, 3 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/internal/conns/conns.go b/internal/conns/conns.go | ||
index eeba6699b4..9fd480f5cd 100644 | ||
--- a/internal/conns/conns.go | ||
+++ b/internal/conns/conns.go | ||
@@ -9,7 +9,6 @@ import ( | ||
awsbase "github.com/hashicorp/aws-sdk-go-base/v2" | ||
awsbasev1 "github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2" | ||
"github.com/hashicorp/terraform-provider-aws/internal/types" | ||
- "github.com/hashicorp/terraform-provider-aws/version" | ||
) | ||
|
||
// ServicePackage is the minimal interface exported from each AWS service package. | ||
@@ -66,10 +65,10 @@ func NewSessionForRegion(cfg *aws.Config, region, terraformVersion string) (*ses | ||
|
||
func StdUserAgentProducts(terraformVersion string) *awsbase.APNInfo { | ||
return &awsbase.APNInfo{ | ||
- PartnerName: "HashiCorp", | ||
+ PartnerName: "Pulumi", | ||
Products: []awsbase.UserAgentProduct{ | ||
- {Name: "Terraform", Version: terraformVersion, Comment: "+https://www.terraform.io"}, | ||
- {Name: "terraform-provider-aws", Version: version.ProviderVersion, Comment: "+https://registry.terraform.io/providers/hashicorp/aws"}, | ||
+ {Name: "Pulumi", Version: "1.0"}, | ||
+ {Name: "Pulumi-Aws", Version: terraformVersion, Comment: "+https://www.pulumi.com"}, | ||
}, | ||
} | ||
} |
Oops, something went wrong.