From 661c5ecd55787ca3424e88a20fa7648b1ecc7647 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Thu, 6 Feb 2020 18:05:14 +0000 Subject: [PATCH] Catch new cloud run api defaults (#3081) Signed-off-by: Modular Magician --- google/resource_cloud_run_service.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/google/resource_cloud_run_service.go b/google/resource_cloud_run_service.go index 27d82e05bdd..6f6a5b160da 100644 --- a/google/resource_cloud_run_service.go +++ b/google/resource_cloud_run_service.go @@ -74,14 +74,16 @@ responsible for materializing the container image from source.`, Schema: map[string]*schema.Schema{ "spec": { Type: schema.TypeList, - Required: true, + Computed: true, + Optional: true, Description: `RevisionSpec holds the desired state of the Revision (from the client).`, MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "containers": { Type: schema.TypeList, - Required: true, + Computed: true, + Optional: true, Description: `Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. @@ -240,6 +242,7 @@ https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names`, }, "resources": { Type: schema.TypeList, + Computed: true, Optional: true, Description: `Compute Resources required by this container. Used to set values such as max memory More info: @@ -249,6 +252,7 @@ https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources`, Schema: map[string]*schema.Schema{ "limits": { Type: schema.TypeMap, + Computed: true, Optional: true, Description: `Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: @@ -282,6 +286,7 @@ might be configured in the container image.`, }, "container_concurrency": { Type: schema.TypeInt, + Computed: true, Optional: true, Description: `ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are: @@ -312,6 +317,7 @@ that the system will manipulate this based on routability and load.`, }, "metadata": { Type: schema.TypeList, + Computed: true, Optional: true, Description: `Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances @@ -325,6 +331,7 @@ annotation key.`, Schema: map[string]*schema.Schema{ "annotations": { Type: schema.TypeMap, + Computed: true, Optional: true, Description: `Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More