Skip to content

Commit 02ec2b2

Browse files
modular-magicianavinash84
and
avinash84
authored
upgraded dcl (#6124) (#11892)
Co-authored-by: avinash84 <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: avinash84 <[email protected]>
1 parent edef073 commit 02ec2b2

8 files changed

+52
-3
lines changed

.changelog/6124.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```release-note:enhancement
2+
compute: added `psc_connection_id` and `psc_connection_status` output fields to `google_compute_forwarding_rule` and `google_compute_global_forwarding_rule` resources
3+
```
4+
```release-note:enhancement
5+
containeraws: made `config.instance_type` field updatable in `google_container_aws_node_pool`
6+
```

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module github.com/hashicorp/terraform-provider-google
22
require (
33
cloud.google.com/go/bigtable v1.13.0
4-
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.10.0
4+
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.10.3
55
github.com/apparentlymart/go-cidr v1.1.0
66
github.com/client9/misspell v0.3.4
77
github.com/davecgh/go-spew v1.1.1

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -1511,3 +1511,5 @@ rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8
15111511
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
15121512
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
15131513
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
1514+
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.10.3 h1:DsRf9bbXlHZVSWosvXwFLvtWdNTvIK/Ssbf8JWnrb/o=
1515+
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.10.3/go.mod h1:UJoDYx6t3+xCOd+dZX8+NrEB+Y/eW1pQlvxh2Gt7y5E=

google/resource_compute_forwarding_rule.go

+18
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,18 @@ func resourceComputeForwardingRule() *schema.Resource {
218218
Description: "Used internally during label updates.",
219219
},
220220

221+
"psc_connection_id": {
222+
Type: schema.TypeString,
223+
Computed: true,
224+
Description: "The PSC connection id of the PSC Forwarding Rule.",
225+
},
226+
227+
"psc_connection_status": {
228+
Type: schema.TypeString,
229+
Computed: true,
230+
Description: "The PSC connection status of the PSC Forwarding Rule. Possible values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED",
231+
},
232+
221233
"self_link": {
222234
Type: schema.TypeString,
223235
Computed: true,
@@ -447,6 +459,12 @@ func resourceComputeForwardingRuleRead(d *schema.ResourceData, meta interface{})
447459
if err = d.Set("label_fingerprint", res.LabelFingerprint); err != nil {
448460
return fmt.Errorf("error setting label_fingerprint in state: %s", err)
449461
}
462+
if err = d.Set("psc_connection_id", res.PscConnectionId); err != nil {
463+
return fmt.Errorf("error setting psc_connection_id in state: %s", err)
464+
}
465+
if err = d.Set("psc_connection_status", res.PscConnectionStatus); err != nil {
466+
return fmt.Errorf("error setting psc_connection_status in state: %s", err)
467+
}
450468
if err = d.Set("self_link", res.SelfLink); err != nil {
451469
return fmt.Errorf("error setting self_link in state: %s", err)
452470
}

google/resource_compute_global_forwarding_rule.go

+18
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,18 @@ func resourceComputeGlobalForwardingRule() *schema.Resource {
146146
Description: "Used internally during label updates.",
147147
},
148148

149+
"psc_connection_id": {
150+
Type: schema.TypeString,
151+
Computed: true,
152+
Description: "The PSC connection id of the PSC Forwarding Rule.",
153+
},
154+
155+
"psc_connection_status": {
156+
Type: schema.TypeString,
157+
Computed: true,
158+
Description: "The PSC connection status of the PSC Forwarding Rule. Possible values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED",
159+
},
160+
149161
"self_link": {
150162
Type: schema.TypeString,
151163
Computed: true,
@@ -340,6 +352,12 @@ func resourceComputeGlobalForwardingRuleRead(d *schema.ResourceData, meta interf
340352
if err = d.Set("label_fingerprint", res.LabelFingerprint); err != nil {
341353
return fmt.Errorf("error setting label_fingerprint in state: %s", err)
342354
}
355+
if err = d.Set("psc_connection_id", res.PscConnectionId); err != nil {
356+
return fmt.Errorf("error setting psc_connection_id in state: %s", err)
357+
}
358+
if err = d.Set("psc_connection_status", res.PscConnectionStatus); err != nil {
359+
return fmt.Errorf("error setting psc_connection_status in state: %s", err)
360+
}
343361
if err = d.Set("self_link", res.SelfLink); err != nil {
344362
return fmt.Errorf("error setting self_link in state: %s", err)
345363
}

google/resource_container_aws_node_pool.go

-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ func ContainerAwsNodePoolConfigSchema() *schema.Resource {
200200
Type: schema.TypeString,
201201
Computed: true,
202202
Optional: true,
203-
ForceNew: true,
204203
Description: "Optional. The AWS instance type. When unspecified, it defaults to `m5.large`.",
205204
},
206205

google/resource_container_aws_node_pool_generated_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ resource "google_container_aws_node_pool" "primary" {
328328
}
329329
330330
iam_instance_profile = "%{byo_prefix}-1p-dev-nodepool"
331-
instance_type = "t3.medium"
331+
instance_type = "t3.large"
332332
333333
labels = {
334334
label-one = "value-one"

website/docs/r/compute_forwarding_rule.html.markdown

+6
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,12 @@ In addition to the arguments listed above, the following computed attributes are
12081208
* `creation_timestamp` -
12091209
Creation timestamp in RFC3339 text format.
12101210

1211+
* `psc_connection_id` -
1212+
The PSC connection id of the PSC Forwarding Rule.
1213+
1214+
* `psc_connection_status` -
1215+
The PSC connection status of the PSC Forwarding Rule. Possible values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED
1216+
12111217
* `label_fingerprint` -
12121218
([Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
12131219
The fingerprint used for optimistic locking of this resource. Used

0 commit comments

Comments
 (0)