Skip to content

Commit

Permalink
Allow dynamic isDevelopmentMode for deployment resource (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
vandyliu authored Nov 20, 2024
1 parent 5396de3 commit 36f4aaf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions internal/provider/resources/resource_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -872,14 +872,6 @@ func validateHostedConfig(ctx context.Context, data *models.DeploymentResource)
)
}

// Need to check that scaling_spec is only for is_development_mode set to true
if !data.IsDevelopmentMode.ValueBool() && !data.ScalingSpec.IsNull() {
diags.AddError(
"scaling_spec (hibernation) is only supported for is_development_mode set to true",
"Either set is_development_mode to true or remove scaling_spec",
)
}

// Need to check that scaling_spec has either override or schedules
if !data.ScalingSpec.IsNull() {
var scalingSpec models.DeploymentScalingSpec
Expand Down

0 comments on commit 36f4aaf

Please sign in to comment.