Skip to content

Commit 663fd5e

Browse files
committed
remove default deployment size
1 parent 0e5ac6b commit 663fd5e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

internal/services/inference/deployment.go

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55

66
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
77
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
8+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
89
inference "github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1"
910
"github.com/scaleway/scaleway-sdk-go/scw"
1011
"github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors"
@@ -67,16 +68,18 @@ func ResourceDeployment() *schema.Resource {
6768
Description: "The tags associated with the deployment",
6869
},
6970
"min_size": {
70-
Type: schema.TypeInt,
71-
Optional: true,
72-
Default: 1,
73-
Description: "The minimum size of the pool",
71+
Type: schema.TypeInt,
72+
Optional: true,
73+
Computed: true,
74+
Description: "The minimum size of the pool",
75+
ValidateFunc: validation.IntAtLeast(1),
7476
},
7577
"max_size": {
76-
Type: schema.TypeInt,
77-
Optional: true,
78-
Default: 1,
79-
Description: "The maximum size of the pool",
78+
Type: schema.TypeInt,
79+
Optional: true,
80+
Computed: true,
81+
Description: "The maximum size of the pool",
82+
ValidateFunc: validation.IntAtLeast(1),
8083
},
8184
"size": {
8285
Type: schema.TypeInt,

0 commit comments

Comments
 (0)