Skip to content

Commit

Permalink
fix creating XL deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
ichung08 committed Aug 9, 2024
1 parent ac9ea49 commit 179779a
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 @@ -861,14 +861,6 @@ func validateHostedConfig(ctx context.Context, data *models.DeploymentResource)
)
}

// Need to check that is_development_mode is only for small schedulers with high_availability set to false
if data.IsDevelopmentMode.ValueBool() && (data.SchedulerSize.ValueString() != string(platform.DeploymentSchedulerSizeSMALL) || data.IsHighAvailability.ValueBool()) {
diags.AddError(
"is_development_mode is only supported for small schedulers with high_availability set to false",
"Either change the scheduler size to 'SMALL' and high_availability to false or set is_development_mode to true",
)
}

// Need to check that scaling_spec is only for is_development_mode set to true
if !data.IsDevelopmentMode.ValueBool() && !data.ScalingSpec.IsNull() {
diags.AddError(
Expand Down

0 comments on commit 179779a

Please sign in to comment.