Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promote CSM network services resources to GA #13206

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions mmv1/products/networkservices/EndpointPolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
name: 'EndpointPolicy'
description: |
EndpointPolicy is a resource that helps apply desired configuration on the endpoints that match specific criteria.
min_version: 'beta'
references:
guides:
api: 'https://cloud.google.com/traffic-director/docs/reference/network-services/rest/v1beta1/projects.locations.endpointPolicies'
Expand Down Expand Up @@ -45,20 +44,17 @@ custom_code:
examples:
- name: 'network_services_endpoint_policy_basic'
primary_resource_id: 'default'
min_version: 'beta'
vars:
resource_name: 'my-endpoint-policy'
- name: 'network_services_endpoint_policy_empty_match'
primary_resource_id: 'default'
min_version: 'beta'
vars:
resource_name: 'my-endpoint-policy'
parameters:
- name: 'name'
type: String
description: |
Name of the EndpointPolicy resource.
min_version: 'beta'
url_param_only: true
required: true
immutable: true
Expand All @@ -67,43 +63,35 @@ properties:
type: Time
description: |
Time the TcpRoute was created in UTC.
min_version: 'beta'
output: true
- name: 'updateTime'
type: Time
description: |
Time the TcpRoute was updated in UTC.
min_version: 'beta'
output: true
- name: 'labels'
type: KeyValueLabels
description: Set of label tags associated with the TcpRoute resource.
min_version: 'beta'
- name: 'description'
type: String
description: |
A free-text description of the resource. Max length 1024 characters.
min_version: 'beta'
- name: 'authorizationPolicy'
type: String
description: |
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
min_version: 'beta'
- name: 'serverTlsPolicy'
type: String
description: |
A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
min_version: 'beta'
- name: 'clientTlsPolicy'
type: String
description: |
A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
min_version: 'beta'
- name: 'type'
type: Enum
description: |
The type of endpoint policy. This is primarily used to validate the configuration.
min_version: 'beta'
required: true
enum_values:
- 'SIDECAR_PROXY'
Expand All @@ -112,35 +100,30 @@ properties:
type: NestedObject
description: |
Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.
min_version: 'beta'
properties:
- name: 'ports'
type: Array
description: |
List of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.
min_version: 'beta'
required: true
item_type:
type: String
- name: 'endpointMatcher'
type: NestedObject
description: |
Required. A matcher that selects endpoints to which the policies should be applied.
min_version: 'beta'
required: true
properties:
- name: 'metadataLabelMatcher'
type: NestedObject
description: |
The matcher is based on node metadata presented by xDS clients.
min_version: 'beta'
required: true
properties:
- name: 'metadataLabelMatchCriteria'
type: Enum
description: |
Specifies how matching should be done.
min_version: 'beta'
required: true
enum_values:
- 'MATCH_ANY'
Expand All @@ -149,19 +132,16 @@ properties:
type: Array
description: |
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
min_version: 'beta'
item_type:
type: NestedObject
properties:
- name: 'labelName'
type: String
description: |
Required. Label name presented as key in xDS Node Metadata.
min_version: 'beta'
required: true
- name: 'labelValue'
type: String
description: |
Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
min_version: 'beta'
required: true
38 changes: 0 additions & 38 deletions mmv1/products/networkservices/GrpcRoute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
name: 'GrpcRoute'
description: |
GrpcRoute is the resource defining how gRPC traffic routed by a Mesh or Gateway resource is routed.
min_version: 'beta'
references:
guides:
api: 'https://cloud.google.com/traffic-director/docs/reference/network-services/rest/v1beta1/projects.locations.grpcRoutes'
Expand Down Expand Up @@ -47,25 +46,21 @@ custom_code:
examples:
- name: 'network_services_grpc_route_basic'
primary_resource_id: 'default'
min_version: 'beta'
vars:
resource_name: 'my-grpc-route'
- name: 'network_services_grpc_route_matches_and_actions'
primary_resource_id: 'default'
min_version: 'beta'
vars:
resource_name: 'my-grpc-route'
- name: 'network_services_grpc_route_actions'
primary_resource_id: 'default'
min_version: 'beta'
vars:
resource_name: 'my-grpc-route'
parameters:
- name: 'name'
type: String
description: |
Name of the GrpcRoute resource.
min_version: 'beta'
url_param_only: true
required: true
immutable: true
Expand All @@ -74,56 +69,47 @@ properties:
type: String
description: |
Server-defined URL of this resource.
min_version: 'beta'
output: true
- name: 'createTime'
type: Time
description: |
Time the GrpcRoute was created in UTC.
min_version: 'beta'
output: true
- name: 'updateTime'
type: Time
description: |
Time the GrpcRoute was updated in UTC.
min_version: 'beta'
output: true
- name: 'labels'
type: KeyValueLabels
description: Set of label tags associated with the GrpcRoute resource.
min_version: 'beta'
- name: 'description'
type: String
description: |
A free-text description of the resource. Max length 1024 characters.
min_version: 'beta'
- name: 'hostnames'
type: Array
description: |
Required. Service hostnames with an optional port for which this route describes traffic.
min_version: 'beta'
required: true
item_type:
type: String
- name: 'meshes'
type: Array
description: |
List of meshes this GrpcRoute is attached to, as one of the routing rules to route the requests served by the mesh.
min_version: 'beta'
item_type:
type: String
- name: 'gateways'
type: Array
description: |
List of gateways this GrpcRoute is attached to, as one of the routing rules to route the requests served by the gateway.
min_version: 'beta'
item_type:
type: String
- name: 'rules'
type: Array
description: |
Rules that define how traffic is routed and handled.
min_version: 'beta'
required: true
item_type:
type: NestedObject
Expand All @@ -132,35 +118,30 @@ properties:
type: Array
description: |
Matches define conditions used for matching the rule against incoming gRPC requests.
min_version: 'beta'
item_type:
type: NestedObject
properties:
- name: 'headers'
type: Array
description: |
Specifies a list of HTTP request headers to match against.
min_version: 'beta'
item_type:
type: NestedObject
properties:
- name: 'key'
type: String
description: |
Required. The key of the header.
min_version: 'beta'
required: true
- name: 'value'
type: String
description: |
Required. The value of the header.
min_version: 'beta'
required: true
- name: 'type'
type: Enum
description: |
The type of match.
min_version: 'beta'
default_value: "EXACT"
enum_values:
- 'TYPE_UNSPECIFIED'
Expand All @@ -170,104 +151,86 @@ properties:
type: NestedObject
description: |
A gRPC method to match against. If this field is empty or omitted, will match all methods.
min_version: 'beta'
properties:
- name: 'grpcService'
type: String
description: |
Required. Name of the service to match against.
min_version: 'beta'
required: true
- name: 'grpcMethod'
type: String
description: |
Required. Name of the method to match against.
min_version: 'beta'
required: true
- name: 'caseSensitive'
type: Boolean
description: |
Specifies that matches are case sensitive. The default value is true.
min_version: 'beta'
default_value: true
- name: 'action'
type: NestedObject
description: |
Required. A detailed rule defining how to route traffic.
min_version: 'beta'
properties:
- name: 'destinations'
type: Array
description: |
The destination to which traffic should be forwarded.
min_version: 'beta'
item_type:
type: NestedObject
properties:
- name: 'serviceName'
type: String
description: |
The URL of a BackendService to route traffic to.
min_version: 'beta'
- name: 'weight'
type: Integer
description: |
Specifies the proportion of requests forwarded to the backend referenced by the serviceName field.
min_version: 'beta'
- name: 'faultInjectionPolicy'
type: NestedObject
description: |
The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.
min_version: 'beta'
properties:
- name: 'delay'
type: NestedObject
description: |
Specification of how client requests are delayed as part of fault injection before being sent to a destination.
min_version: 'beta'
properties:
- name: 'fixedDelay'
type: String
description: |
Specify a fixed delay before forwarding the request.
min_version: 'beta'
- name: 'percentage'
type: Integer
description: |
The percentage of traffic on which delay will be injected.
min_version: 'beta'
- name: 'abort'
type: NestedObject
description: |
Specification of how client requests are aborted as part of fault injection before being sent to a destination.
min_version: 'beta'
properties:
- name: 'httpStatus'
type: Integer
description: |
The HTTP status code used to abort the request.
min_version: 'beta'
- name: 'percentage'
type: Integer
description: |
The percentage of traffic which will be aborted.
min_version: 'beta'
- name: 'timeout'
type: String
description: |
Specifies the timeout for selected route.
min_version: 'beta'
- name: 'retryPolicy'
type: NestedObject
description: |
Specifies the retry policy associated with this route.
min_version: 'beta'
properties:
- name: 'retryConditions'
type: Array
description: |
Specifies one or more conditions when this retry policy applies.
min_version: 'beta'
item_type:
type: Enum
description: Condition when this retry policy applies.
Expand All @@ -282,4 +245,3 @@ properties:
type: Integer
description: |
Specifies the allowed number of retries.
min_version: 'beta'
Loading
Loading