Skip to content

Commit 620a51f

Browse files
committed
Allow dynamic isDevelopmentMode for deployment resource
1 parent 5396de3 commit 620a51f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

internal/provider/resources/resource_deployment.go

-8
Original file line numberDiff line numberDiff line change
@@ -872,14 +872,6 @@ func validateHostedConfig(ctx context.Context, data *models.DeploymentResource)
872872
)
873873
}
874874

875-
// Need to check that scaling_spec is only for is_development_mode set to true
876-
if !data.IsDevelopmentMode.ValueBool() && !data.ScalingSpec.IsNull() {
877-
diags.AddError(
878-
"scaling_spec (hibernation) is only supported for is_development_mode set to true",
879-
"Either set is_development_mode to true or remove scaling_spec",
880-
)
881-
}
882-
883875
// Need to check that scaling_spec has either override or schedules
884876
if !data.ScalingSpec.IsNull() {
885877
var scalingSpec models.DeploymentScalingSpec

0 commit comments

Comments
 (0)