MCPcopy Create free account
hub / github.com/VictoriaMetrics/operator / Create

Method Create

internal/manager/client.go:172–175  ·  view source on GitHub ↗
(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption)

Source from the content-addressed store, hash-verified

170}
171
172func (d *dryRunSubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error {
173 d.log.Info("dry-run: SubResource Create", "subResource", d.subResource, "kind", kindOf(obj), "name", obj.GetName(), "namespace", obj.GetNamespace())
174 return d.SubResourceClient.Create(ctx, obj, subResource, append(opts, client.DryRunAll)...)
175}
176
177func (d *dryRunSubResourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error {
178 d.log.Info("dry-run: SubResource Update", "subResource", d.subResource, "kind", kindOf(obj), "name", obj.GetName(), "namespace", obj.GetNamespace())

Callers

nothing calls this directly

Calls 4

kindOfFunction · 0.85
InfoMethod · 0.80
GetNamespaceMethod · 0.65
CreateMethod · 0.65

Tested by

no test coverage detected