@@ -322,6 +322,11 @@ Or: <code>original_yaml_string = file("/path/to/my/codefresh.yml")</code>
322322 Type : schema .TypeString ,
323323 Optional : true ,
324324 },
325+ "required_available_storage" : {
326+ Description : "Minimum disk space required for build filesystem ( unit Gi is required)." ,
327+ Type : schema .TypeString ,
328+ Optional : true ,
329+ },
325330 },
326331 },
327332 },
@@ -437,6 +442,11 @@ The following table presents how to configure this block based on the options av
437442 Type : schema .TypeString ,
438443 Optional : true ,
439444 },
445+ "required_available_storage" : {
446+ Description : "Minimum disk space required for build filesystem ( unit Gi is required)." ,
447+ Type : schema .TypeString ,
448+ Optional : true ,
449+ },
440450 },
441451 },
442452 },
@@ -690,10 +700,11 @@ func flattenSpecTemplate(spec cfClient.SpecTemplate) []map[string]interface{} {
690700func flattenSpecRuntimeEnvironment (spec cfClient.RuntimeEnvironment ) []map [string ]interface {} {
691701 return []map [string ]interface {}{
692702 {
693- "name" : spec .Name ,
694- "memory" : spec .Memory ,
695- "cpu" : spec .CPU ,
696- "dind_storage" : spec .DindStorage ,
703+ "name" : spec .Name ,
704+ "memory" : spec .Memory ,
705+ "cpu" : spec .CPU ,
706+ "dind_storage" : spec .DindStorage ,
707+ "required_available_storage" : spec .RequiredAvailableStorage ,
697708 },
698709 }
699710}
@@ -788,10 +799,11 @@ func mapResourceToPipeline(d *schema.ResourceData) (*cfClient.Pipeline, error) {
788799
789800 if _ , ok := d .GetOk ("spec.0.runtime_environment" ); ok {
790801 pipeline .Spec .RuntimeEnvironment = cfClient.RuntimeEnvironment {
791- Name : d .Get ("spec.0.runtime_environment.0.name" ).(string ),
792- Memory : d .Get ("spec.0.runtime_environment.0.memory" ).(string ),
793- CPU : d .Get ("spec.0.runtime_environment.0.cpu" ).(string ),
794- DindStorage : d .Get ("spec.0.runtime_environment.0.dind_storage" ).(string ),
802+ Name : d .Get ("spec.0.runtime_environment.0.name" ).(string ),
803+ Memory : d .Get ("spec.0.runtime_environment.0.memory" ).(string ),
804+ CPU : d .Get ("spec.0.runtime_environment.0.cpu" ).(string ),
805+ DindStorage : d .Get ("spec.0.runtime_environment.0.dind_storage" ).(string ),
806+ RequiredAvailableStorage : d .Get ("spec.0.runtime_environment.0.required_available_storage" ).(string ),
795807 }
796808 }
797809
@@ -836,10 +848,11 @@ func mapResourceToPipeline(d *schema.ResourceData) (*cfClient.Pipeline, error) {
836848 }
837849 if _ , ok := d .GetOk (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment" , idx )); ok {
838850 triggerRuntime := cfClient.RuntimeEnvironment {
839- Name : d .Get (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment.0.name" , idx )).(string ),
840- Memory : d .Get (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment.0.memory" , idx )).(string ),
841- CPU : d .Get (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment.0.cpu" , idx )).(string ),
842- DindStorage : d .Get (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment.0.dind_storage" , idx )).(string ),
851+ Name : d .Get (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment.0.name" , idx )).(string ),
852+ Memory : d .Get (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment.0.memory" , idx )).(string ),
853+ CPU : d .Get (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment.0.cpu" , idx )).(string ),
854+ DindStorage : d .Get (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment.0.dind_storage" , idx )).(string ),
855+ RequiredAvailableStorage : d .Get (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment.0.required_available_storage" , idx )).(string ),
843856 }
844857 codefreshTrigger .RuntimeEnvironment = & triggerRuntime
845858 }
0 commit comments