devsapp / fc

阿里云函数计算(FC)组件
MIT License
139 stars 40 forks source link

当function填写了cpu参数,diskSize则要求必填 #990

Open DVKunion opened 1 year ago

DVKunion commented 1 year ago

仅配置了function中的cpu,s deploy报错:

✖ Creating Service, Function (27.58s)
✖ Creating Service, Function (27.24s)
✖ Creating Service, Function (27.35s)
✖ Project func-FC failed to execute:

ERROR:

POST /services/func-Service/functions failed with 400. requestid: 1-64b805e2-c26c6ee0a761e1c4fed8a48a, message: Disk is required but not provided.

补充了 diskSize: 512 后服务正常创建; 不配置cpu默认为0.33时也同样可以创建。

看手册中diskSize并不是一个必填项,能否给提供一个默认值?或者增加一个提示?

heimanba commented 1 year ago

V3 版本解决这个问题