Skip to content

Commit ef266c4

Browse files
authored
Update ursa and serverless release channel check (#112)
1 parent 21cd755 commit ef266c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cloud/resource_pulsar_cluster.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,12 @@ func resourcePulsarClusterCreate(ctx context.Context, d *schema.ResourceData, me
463463
pulsarCluster.Annotations[UrsaEngineAnnotation] = UrsaEngineValue
464464
}
465465
}
466+
if ursaEnabled || pulsarInstance.IsServerless() {
467+
if pulsarCluster.Spec.ReleaseChannel != "" && pulsarCluster.Spec.ReleaseChannel != "rapid" {
468+
return diag.FromErr(fmt.Errorf("ERROR_CREATE_PULSAR_CLUSTER: " +
469+
"release_channel must be rapid for ursa engine or serverless instance"))
470+
}
471+
}
466472
if !ursaEnabled && !pulsarInstance.IsServerless() {
467473
pulsarCluster.Spec.BookKeeper = bookkeeper
468474
}

0 commit comments

Comments
 (0)