From 5eaa00f2f741609cfc3bc8c32dcc56635de0bd00 Mon Sep 17 00:00:00 2001 From: Ali Ebrahim Date: Tue, 12 Mar 2024 10:36:59 -0700 Subject: [PATCH 1/2] cloudrunv2: Validate number of ports specified restricting to 1. --- mmv1/products/cloudrunv2/Service.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/mmv1/products/cloudrunv2/Service.yaml b/mmv1/products/cloudrunv2/Service.yaml index bbedcc2cf10c..4bfff5ba8fb4 100644 --- a/mmv1/products/cloudrunv2/Service.yaml +++ b/mmv1/products/cloudrunv2/Service.yaml @@ -448,6 +448,7 @@ properties: Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency. - !ruby/object:Api::Type::Array name: 'ports' + maxSize: 1 description: |- List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. From 046ff72ec371d970b21aba11044b7cc5afa6424a Mon Sep 17 00:00:00 2001 From: Ali Ebrahim Date: Wed, 13 Mar 2024 16:46:15 -0700 Subject: [PATCH 2/2] Update mmv1/products/cloudrunv2/Service.yaml --- mmv1/products/cloudrunv2/Service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmv1/products/cloudrunv2/Service.yaml b/mmv1/products/cloudrunv2/Service.yaml index 4bfff5ba8fb4..861d8f1fdf0d 100644 --- a/mmv1/products/cloudrunv2/Service.yaml +++ b/mmv1/products/cloudrunv2/Service.yaml @@ -448,7 +448,7 @@ properties: Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency. - !ruby/object:Api::Type::Array name: 'ports' - maxSize: 1 + max_size: 1 description: |- List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible.