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

Method ListConfigMapsWithLabelKeys

pkg/lib/k8s/configmap.go:144–149  ·  view source on GitHub ↗
(labelKeys ...string)

Source from the content-addressed store, hash-verified

142}
143
144func (c *Client) ListConfigMapsWithLabelKeys(labelKeys ...string) ([]kcore.ConfigMap, error) {
145 opts := &kmeta.ListOptions{
146 LabelSelector: LabelExistsSelector(labelKeys...),
147 }
148 return c.ListConfigMaps(opts)
149}
150
151func ConfigMapMap(configMaps []kcore.ConfigMap) map[string]kcore.ConfigMap {
152 configMapMap := map[string]kcore.ConfigMap{}

Callers

nothing calls this directly

Calls 2

ListConfigMapsMethod · 0.95
LabelExistsSelectorFunction · 0.85

Tested by

no test coverage detected