MCPcopy
hub / github.com/cortexlabs/cortex / ListVirtualServicesWithLabelKeys

Method ListVirtualServicesWithLabelKeys

pkg/lib/k8s/virtual_service.go:265–270  ·  view source on GitHub ↗
(labelKeys ...string)

Source from the content-addressed store, hash-verified

263}
264
265func (c *Client) ListVirtualServicesWithLabelKeys(labelKeys ...string) ([]istioclientnetworking.VirtualService, error) {
266 opts := &kmeta.ListOptions{
267 LabelSelector: LabelExistsSelector(labelKeys...),
268 }
269 return c.ListVirtualServices(opts)
270}
271
272func ExtractVirtualServiceGateways(virtualService *istioclientnetworking.VirtualService) strset.Set {
273 return strset.FromSlice(virtualService.Spec.Gateways)

Callers 1

GetAPIsFunction · 0.80

Calls 2

ListVirtualServicesMethod · 0.95
LabelExistsSelectorFunction · 0.85

Tested by

no test coverage detected