selectors.proto

Package: selectors.core.gloo.solo.io

Types:

Source File: github.com/solo-io/gloo/projects/gloo/api/v1/core/selectors/selectors.proto

Selector

"namespaces": []string
"labels": map<string, string>
"expressions": []selectors.core.gloo.solo.io.Selector.Expression

Field Type Description
namespaces []string
labels map<string, string>
expressions []selectors.core.gloo.solo.io.Selector.Expression Expressions allow for more flexible Route Tables label matching, such as equality-based requirements, set-based requirements, or a combination of both. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#equality-based-requirement.

Expression

"key": string
"operator": .selectors.core.gloo.solo.io.Selector.Expression.Operator
"values": []string

Field Type Description
key string Kubernetes label key, must conform to Kubernetes syntax requirements https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set.
operator .selectors.core.gloo.solo.io.Selector.Expression.Operator The operator can only be in, notin, =, ==, !=, exists, ! (DoesNotExist), gt (GreaterThan), lt (LessThan).
values []string

Operator

Selector expression operator, while the set-based syntax differs from Kubernetes (kubernetes: key: !mylabel, gloo: key: mylabel, operator: "!" | kubernetes: key: mylabel, gloo: key: mylabel, operator: exists), the functionality remains the same.

Name Description
Equals =
DoubleEquals ==
NotEquals !=
In in
NotIn notin
Exists exists
DoesNotExist !
GreaterThan gt
LessThan lt