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

Method ListDeploymentsWithLabelKeys

pkg/lib/k8s/deployment.go:177–182  ·  view source on GitHub ↗
(labelKeys ...string)

Source from the content-addressed store, hash-verified

175}
176
177func (c *Client) ListDeploymentsWithLabelKeys(labelKeys ...string) ([]kapps.Deployment, error) {
178 opts := &kmeta.ListOptions{
179 LabelSelector: LabelExistsSelector(labelKeys...),
180 }
181 return c.ListDeployments(opts)
182}
183
184func DeploymentMap(deployments []kapps.Deployment) map[string]kapps.Deployment {
185 deploymentMap := map[string]kapps.Deployment{}

Callers 2

GetAPIsFunction · 0.80
mainFunction · 0.80

Calls 2

ListDeploymentsMethod · 0.95
LabelExistsSelectorFunction · 0.85

Tested by

no test coverage detected