Move DindVolumeSize to playground opts
This commit is contained in:
@@ -15,7 +15,7 @@ func NewInstance(rw http.ResponseWriter, req *http.Request) {
|
||||
vars := mux.Vars(req)
|
||||
sessionId := vars["sessionId"]
|
||||
|
||||
body := types.InstanceConfig{PlaygroundFQDN: req.Host}
|
||||
body := types.InstanceConfig{PlaygroundFQDN: req.Host, DindVolumeSize: "5G"}
|
||||
|
||||
json.NewDecoder(req.Body).Decode(&body)
|
||||
|
||||
@@ -51,6 +51,10 @@ func NewInstance(rw http.ResponseWriter, req *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if len(playground.DindVolumeSize) > 0 {
|
||||
body.DindVolumeSize = playground.DindVolumeSize
|
||||
}
|
||||
|
||||
i, err := core.InstanceNew(s, body)
|
||||
if err != nil {
|
||||
if provisioner.OutOfCapacity(err) {
|
||||
|
||||
Reference in New Issue
Block a user