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
Copy file name to clipboardExpand all lines: mmv1/products/cloudfunctions2/Function.yaml
+4
Original file line number
Diff line number
Diff line change
@@ -653,6 +653,10 @@ properties:
653
653
description: |
654
654
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
655
655
required: true
656
+
- name: 'binaryAuthorizationPolicy'
657
+
type: String
658
+
description: |
659
+
The binary authorization policy to be checked when deploying the Cloud Run service.
Copy file name to clipboardExpand all lines: mmv1/products/compute/UrlMap.yaml
+54
Original file line number
Diff line number
Diff line change
@@ -1729,6 +1729,60 @@ properties:
1729
1729
prior to redirecting the request. If set to false, the query portion of the
1730
1730
original URL is retained. Defaults to false.
1731
1731
default_value: false
1732
+
- name: 'customErrorResponsePolicy'
1733
+
type: NestedObject
1734
+
description: |
1735
+
customErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendService or BackendBucket responds with an error.
1736
+
min_version: 'beta'
1737
+
properties:
1738
+
- name: 'errorResponseRule'
1739
+
type: Array
1740
+
description: |
1741
+
Specifies rules for returning error responses.
1742
+
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
1743
+
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
1744
+
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
1745
+
api_name: errorResponseRules
1746
+
item_type:
1747
+
type: NestedObject
1748
+
properties:
1749
+
- name: 'matchResponseCodes'
1750
+
type: Array
1751
+
description: |
1752
+
Valid values include:
1753
+
1754
+
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
1755
+
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
1756
+
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
1757
+
1758
+
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
1759
+
item_type:
1760
+
type: String
1761
+
- name: 'path'
1762
+
type: String
1763
+
description: |
1764
+
The full path to a file within backendBucket . For example: /errors/defaultError.html
1765
+
path must start with a leading slash. path cannot have trailing slashes.
1766
+
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
1767
+
The value must be from 1 to 1024 characters
1768
+
- name: 'overrideResponseCode'
1769
+
type: Integer
1770
+
description: |
1771
+
The HTTP status code returned with the response containing the custom error content.
1772
+
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
1773
+
- name: 'errorService'
1774
+
type: ResourceRef
1775
+
description: |
1776
+
The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
1783
+
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
1784
+
resource: 'BackendBucket'
1785
+
imports: 'selfLink'
1732
1786
- name: 'defaultUrlRedirect'
1733
1787
type: NestedObject
1734
1788
# TODO: (mbang) won't work for array path matchers yet, uncomment here once they are supported.
0 commit comments