selector.proto

Package: supergloo.solo.io

Types:

Source File: github.com/solo-io/supergloo/api/v1/selector.proto

PodSelector

specifies a method by which to select pods with in a mesh for the application of rules and policies

"labelSelector": .supergloo.solo.io.PodSelector.LabelSelector
"upstreamSelector": .supergloo.solo.io.PodSelector.UpstreamSelector
"serviceSelector": .supergloo.solo.io.PodSelector.ServiceSelector
"namespaceSelector": .supergloo.solo.io.PodSelector.NamespaceSelector
Field Type Description Default
labelSelector .supergloo.solo.io.PodSelector.LabelSelector select pods by their labels
upstreamSelector .supergloo.solo.io.PodSelector.UpstreamSelector select pods by their corresponding upstreams
serviceSelector .supergloo.solo.io.PodSelector.ServiceSelector select pods by their corresponding services
namespaceSelector .supergloo.solo.io.PodSelector.NamespaceSelector select all pods within one or more namespaces

LabelSelector

select pods by their labels

"labelsToMatch": map<string, string>
Field Type Description Default
labelsToMatch map<string, string>

UpstreamSelector

select pods based on their services or subsets of services. upstream CRDs will be created by discovery corresponding to kubernetes services and the available subsets of those services

"upstreams": []core.solo.io.ResourceRef
Field Type Description Default
upstreams []core.solo.io.ResourceRef apply the selector to one or more of their upstreams by adding their refs here

ServiceSelector

select pods based on the services they back

"services": []core.solo.io.ResourceRef
Field Type Description Default
services []core.solo.io.ResourceRef apply the selector to one or more services by adding their refs here

NamespaceSelector

select all pods in these namespaces

"namespaces": []string
Field Type Description Default
namespaces []string