Class GRPCRouteMatch

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<GRPCRouteMatchBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class GRPCRouteMatch
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<GRPCRouteMatchBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    GRPCRouteMatch defines the predicate used to match requests to a given action. Multiple match types are ANDed together, i.e. the match will evaluate to true only if all conditions are satisfied.


    For example, the match below will match a gRPC request only if its service is `foo` AND it contains the `version: v1` header:


    ``` matches:

    - method:

    type: Exact

    service: "foo"

    headers:

    - name: "version"

    value "v1"


    ```

    See Also:
    Serialized Form
    • Constructor Detail

      • GRPCRouteMatch

        public GRPCRouteMatch()
        No args constructor for use in serialization
    • Method Detail

      • getHeaders

        public List<GRPCHeaderMatch> getHeaders()
        Headers specifies gRPC request header matchers. Multiple match values are ANDed together, meaning, a request MUST match all the specified headers to select the route.
      • setHeaders

        public void setHeaders​(List<GRPCHeaderMatch> headers)
        Headers specifies gRPC request header matchers. Multiple match values are ANDed together, meaning, a request MUST match all the specified headers to select the route.
      • getMethod

        public GRPCMethodMatch getMethod()
        GRPCRouteMatch defines the predicate used to match requests to a given action. Multiple match types are ANDed together, i.e. the match will evaluate to true only if all conditions are satisfied.


        For example, the match below will match a gRPC request only if its service is `foo` AND it contains the `version: v1` header:


        ``` matches:

        - method:

        type: Exact

        service: "foo"

        headers:

        - name: "version"

        value "v1"


        ```

      • setMethod

        public void setMethod​(GRPCMethodMatch method)
        GRPCRouteMatch defines the predicate used to match requests to a given action. Multiple match types are ANDed together, i.e. the match will evaluate to true only if all conditions are satisfied.


        For example, the match below will match a gRPC request only if its service is `foo` AND it contains the `version: v1` header:


        ``` matches:

        - method:

        type: Exact

        service: "foo"

        headers:

        - name: "version"

        value "v1"


        ```

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)