Skip to content

Commit

Permalink
cloudrunv2: Validate number of ports specified restricting to 1. (#10173
Browse files Browse the repository at this point in the history
) (#17594)

* cloudrunv2: Validate number of ports specified restricting to 1.

* Update mmv1/products/cloudrunv2/Service.yaml

[upstream:219ab589aaafa919c7011967def03305f56c8462]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Mar 14, 2024
1 parent fa60d89 commit 0e051af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/10173.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
cloudrunv2: added the validation to restrict number of ports to 1 to fail earlier than server-side validation
```
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ is the value of container.ports[0].containerPort.`,
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.
If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on`,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"container_port": {
Expand Down

0 comments on commit 0e051af

Please sign in to comment.