Skip to content

Commit c6eecee

Browse files
modular-magicianroaks3
authored andcommitted
Remove max bytes validation (#8642) (#6069)
* Remove validation on max_bytes * Test max_bytes less than 1000 * Revert max_bytes to valid value Signed-off-by: Modular Magician <[email protected]>
1 parent 1e93cb9 commit c6eecee

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.changelog/8642.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/services/pubsub/resource_pubsub_subscription.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
"time"
2727

2828
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
29-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
3029

3130
"github.com/hashicorp/terraform-provider-google-beta/google-beta/tpgresource"
3231
transport_tpg "github.com/hashicorp/terraform-provider-google-beta/google-beta/transport"
@@ -173,9 +172,8 @@ If all three are empty, then the subscriber will pull and ack messages using API
173172
Description: `User-provided suffix for Cloud Storage filename. Must not end in "/".`,
174173
},
175174
"max_bytes": {
176-
Type: schema.TypeInt,
177-
Optional: true,
178-
ValidateFunc: validation.IntBetween(1000, 10737418240),
175+
Type: schema.TypeInt,
176+
Optional: true,
179177
Description: `The maximum bytes that can be written to a Cloud Storage file before a new file is created. Min 1 KB, max 10 GiB.
180178
The maxBytes limit may be exceeded in cases where messages are larger than the limit.`,
181179
},

0 commit comments

Comments
 (0)