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