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

Method Create

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

Source from the content-addressed store, hash-verified

61}
62
63func (d *dryRunSubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error {
64 d.log.Info("dry-run: SubResource Create", "subResource", d.subResource, "kind", obj.GetObjectKind().GroupVersionKind().Kind, "name", obj.GetName(), "namespace", obj.GetNamespace())
65 return nil
66}
67
68func (d *dryRunSubResourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error {
69 d.log.Info("dry-run: SubResource Update", "subResource", d.subResource, "kind", obj.GetObjectKind().GroupVersionKind().Kind, "name", obj.GetName(), "namespace", obj.GetNamespace())

Callers

nothing calls this directly

Calls 2

InfoMethod · 0.80
GetNamespaceMethod · 0.65

Tested by

no test coverage detected