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
"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
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

NamespaceSelector

select all pods in these namespaces

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