MCPcopy
hub / github.com/helm/helm / Create

Method Create

pkg/action/lazyclient.go:136–141  ·  view source on GitHub ↗
(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions)

Source from the content-addressed store, hash-verified

134}
135
136func (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
143func (c *configMapClient) Update(ctx context.Context, configMap *v1.ConfigMap, opts metav1.UpdateOptions) (*v1.ConfigMap, error) {
144 if err := c.init(); err != nil {

Callers

nothing calls this directly

Calls 2

CreateMethod · 0.65
initMethod · 0.45

Tested by

no test coverage detected