@@ -322,6 +322,11 @@ Or: <code>original_yaml_string = file("/path/to/my/codefresh.yml")</code>
322
322
Type : schema .TypeString ,
323
323
Optional : true ,
324
324
},
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
+ },
325
330
},
326
331
},
327
332
},
@@ -437,6 +442,11 @@ The following table presents how to configure this block based on the options av
437
442
Type : schema .TypeString ,
438
443
Optional : true ,
439
444
},
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
+ },
440
450
},
441
451
},
442
452
},
@@ -690,10 +700,11 @@ func flattenSpecTemplate(spec cfClient.SpecTemplate) []map[string]interface{} {
690
700
func flattenSpecRuntimeEnvironment (spec cfClient.RuntimeEnvironment ) []map [string ]interface {} {
691
701
return []map [string ]interface {}{
692
702
{
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 ,
697
708
},
698
709
}
699
710
}
@@ -788,10 +799,11 @@ func mapResourceToPipeline(d *schema.ResourceData) (*cfClient.Pipeline, error) {
788
799
789
800
if _ , ok := d .GetOk ("spec.0.runtime_environment" ); ok {
790
801
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 ),
795
807
}
796
808
}
797
809
@@ -836,10 +848,11 @@ func mapResourceToPipeline(d *schema.ResourceData) (*cfClient.Pipeline, error) {
836
848
}
837
849
if _ , ok := d .GetOk (fmt .Sprintf ("spec.0.trigger.%v.runtime_environment" , idx )); ok {
838
850
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 ),
843
856
}
844
857
codefreshTrigger .RuntimeEnvironment = & triggerRuntime
845
858
}
0 commit comments