Skip to content

Commit 945c68f

Browse files
Add PSC fields to Filestore instance in ga (#15116) (#10822)
[upstream:250877817a0812a25d8b725d727847887bee14e8] Signed-off-by: Modular Magician <[email protected]>
1 parent 784dfd9 commit 945c68f

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

.changelog/15116.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
filestore: added PSC fields to `google_filestore_instance` (ga)
3+
```

google-beta/services/filestore/resource_filestore_instance_test.go

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ func TestAccFilestoreInstance_psc(t *testing.T) {
631631

632632
acctest.VcrTest(t, resource.TestCase{
633633
PreCheck: func() { acctest.AccTestPreCheck(t) },
634-
ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t),
634+
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
635635
CheckDestroy: testAccCheckFilestoreInstanceDestroyProducer(t),
636636
Steps: []resource.TestStep{
637637
{
@@ -652,26 +652,21 @@ func TestAccFilestoreInstance_psc(t *testing.T) {
652652

653653
func testAccFilestoreInstance_psc(context map[string]interface{}) string {
654654
return acctest.Nprintf(`
655-
data "google_client_config" "current" {
656-
provider = google-beta
657-
}
655+
data "google_client_config" "current" {}
658656
659657
resource "google_compute_network" "psc_network" {
660-
provider = google-beta
661658
name = "%{name}"
662659
auto_create_subnetworks = false
663660
}
664661
665662
resource "google_compute_subnetwork" "psc_subnet" {
666-
provider = google-beta
667663
name = "%{name}"
668664
ip_cidr_range = "10.2.0.0/16"
669665
region = "%{location}"
670666
network = google_compute_network.psc_network.id
671667
}
672668
673669
resource "google_network_connectivity_service_connection_policy" "default" {
674-
provider = google-beta
675670
name = "%{name}"
676671
location = "%{location}"
677672
service_class = "google-cloud-filestore"
@@ -682,7 +677,6 @@ resource "google_network_connectivity_service_connection_policy" "default" {
682677
}
683678
684679
resource "google_filestore_instance" "instance" {
685-
provider = google-beta
686680
depends_on = [
687681
google_network_connectivity_service_connection_policy.default
688682
]
@@ -724,7 +718,7 @@ func TestAccFilestoreInstance_nfsExportOptionsNetwork_update(t *testing.T) {
724718
// Currently, we can only alternate between an empty network and the instance network of non-PSC instances.
725719
acctest.VcrTest(t, resource.TestCase{
726720
PreCheck: func() { acctest.AccTestPreCheck(t) },
727-
ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t),
721+
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
728722
CheckDestroy: testAccCheckFilestoreInstanceDestroyProducer(t),
729723
Steps: []resource.TestStep{
730724
{
@@ -754,7 +748,6 @@ func TestAccFilestoreInstance_nfsExportOptionsNetwork_update(t *testing.T) {
754748
func testAccFilestoreInstance_nfsExportOptionsNetwork_update(name, location, tier, network string) string {
755749
return fmt.Sprintf(`
756750
resource "google_filestore_instance" "instance" {
757-
provider = google-beta
758751
name = "%s"
759752
zone = "%s"
760753
tier = "%s"

website/docs/r/filestore_instance.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ The following arguments are supported:
319319
if this field is specified for other squashMode settings.
320320

321321
* `network` -
322-
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
322+
(Optional)
323323
The source VPC network for `ip_ranges`.
324324
Required for instances using Private Service Connect, optional otherwise.
325325

@@ -354,7 +354,7 @@ The following arguments are supported:
354354
Possible values are: `DIRECT_PEERING`, `PRIVATE_SERVICE_ACCESS`, `PRIVATE_SERVICE_CONNECT`.
355355

356356
* `psc_config` -
357-
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
357+
(Optional)
358358
Private Service Connect configuration.
359359
Should only be set when connect_mode is PRIVATE_SERVICE_CONNECT.
360360
Structure is [documented below](#nested_networks_networks_psc_config).

0 commit comments

Comments
 (0)