(opts *kmeta.ListOptions)
| 117 | } |
| 118 | |
| 119 | func (c *Client) ListConfigMaps(opts *kmeta.ListOptions) ([]kcore.ConfigMap, error) { |
| 120 | if opts == nil { |
| 121 | opts = &kmeta.ListOptions{} |
| 122 | } |
| 123 | configMapList, err := c.configMapClient.List(context.Background(), *opts) |
| 124 | if err != nil { |
| 125 | return nil, errors.WithStack(err) |
| 126 | } |
| 127 | for i := range configMapList.Items { |
| 128 | configMapList.Items[i].TypeMeta = _configMapTypeMeta |
| 129 | } |
| 130 | return configMapList.Items, nil |
| 131 | } |
| 132 | |
| 133 | func (c *Client) ListConfigMapsByLabels(labels map[string]string) ([]kcore.ConfigMap, error) { |
| 134 | opts := &kmeta.ListOptions{ |
no test coverage detected