You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for Empty Dir Volumes and the Container Dependencies to Cloud Run v2 (#7897) (#5613)
* Add support for the depends_on field in the Cloud Run v2 API.
* Add emptyDir volume type for the Cloud Run v2 API
* Add Cloud Run v2 Service multi-container example
* Add Cloud Run v2 Job empty dir volume example
* Add default value for empty dir medium in Cloud Run volumes
* Mark empty_dir and depends_on as beta fields
Signed-off-by: Modular Magician <[email protected]>
Description: `The different types of medium supported for EmptyDir. Default value: "MEMORY" Possible values: ["MEMORY"]`,
466
+
Default: "MEMORY",
467
+
},
468
+
"size_limit": {
469
+
Type: schema.TypeString,
470
+
Optional: true,
471
+
Description: `Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir.`,
472
+
},
473
+
},
474
+
},
475
+
},
454
476
"secret": {
455
477
Type: schema.TypeList,
456
478
Optional: true,
@@ -1770,6 +1792,7 @@ func flattenCloudRunV2JobTemplateTemplateVolumes(v interface{}, d *schema.Resour
Description: `Containers which should be started before this container. If specified the container will wait to start until all containers with the listed names are healthy.`,
99
+
Elem: &schema.Schema{
100
+
Type: schema.TypeString,
101
+
},
102
+
},
95
103
"env": {
96
104
Type: schema.TypeList,
97
105
Optional: true,
@@ -558,6 +566,28 @@ A duration in seconds with up to nine fractional digits, ending with 's'. Exampl
558
566
},
559
567
},
560
568
},
569
+
"empty_dir": {
570
+
Type: schema.TypeList,
571
+
Optional: true,
572
+
Description: `Ephemeral storage used as a shared volume.`,
Description: `The different types of medium supported for EmptyDir. Default value: "MEMORY" Possible values: ["MEMORY"]`,
581
+
Default: "MEMORY",
582
+
},
583
+
"size_limit": {
584
+
Type: schema.TypeString,
585
+
Optional: true,
586
+
Description: `Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir.`,
587
+
},
588
+
},
589
+
},
590
+
},
561
591
"secret": {
562
592
Type: schema.TypeList,
563
593
Optional: true,
@@ -1533,6 +1563,7 @@ func flattenCloudRunV2ServiceTemplateContainers(v interface{}, d *schema.Resourc
0 commit comments