(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions)
| 134 | } |
| 135 | |
| 136 | func (c *configMapClient) Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (*v1.ConfigMap, error) { |
| 137 | if err := c.init(); err != nil { |
| 138 | return nil, err |
| 139 | } |
| 140 | return c.client.CoreV1().ConfigMaps(c.namespace).Create(ctx, configMap, opts) |
| 141 | } |
| 142 | |
| 143 | func (c *configMapClient) Update(ctx context.Context, configMap *v1.ConfigMap, opts metav1.UpdateOptions) (*v1.ConfigMap, error) { |
| 144 | if err := c.init(); err != nil { |