Skip to content

Commit ed060bf

Browse files
committed
Allow dynamic worker queue to be set
1 parent c781538 commit ed060bf

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

internal/provider/resources/resource_deployment.go

-14
Original file line numberDiff line numberDiff line change
@@ -645,20 +645,6 @@ func (r *DeploymentResource) ValidateConfig(
645645
return
646646
}
647647

648-
// Need to do dynamic validation based on the executor and worker queues
649-
if data.Executor.ValueString() == string(platform.DeploymentExecutorKUBERNETES) && len(data.WorkerQueues.Elements()) > 0 {
650-
resp.Diagnostics.AddError(
651-
"worker_queues are not supported for 'KUBERNETES' executor",
652-
"Either change the executor to 'CELERY' or remove worker_queues",
653-
)
654-
}
655-
if data.Executor.ValueString() == string(platform.DeploymentExecutorCELERY) && (data.WorkerQueues.IsNull() || len(data.WorkerQueues.Elements()) == 0) {
656-
resp.Diagnostics.AddError(
657-
"worker_queues must be included for 'CELERY' executor",
658-
"Either change the executor to 'KUBERNETES' or include worker_queues",
659-
)
660-
}
661-
662648
// Type specific validation
663649
switch platform.DeploymentType(data.Type.ValueString()) {
664650
case platform.DeploymentTypeSTANDARD:

0 commit comments

Comments
 (0)