Skip to content

Commit 0ccf0eb

Browse files
committed
Update serverless check
1 parent 6cf1275 commit 0ccf0eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cloud/resource_pulsar_cluster.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ func resourcePulsarCluster() *schema.Resource {
138138
"config": {
139139
Type: schema.TypeList,
140140
Optional: true,
141+
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
142+
return d.Get("type") == string(cloudv1alpha1.PulsarInstanceTypeServerless)
143+
},
141144
MinItems: 0,
142145
Elem: &schema.Resource{
143146
Schema: map[string]*schema.Schema{

0 commit comments

Comments
 (0)