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

Method Create

internal/manager/client.go:24–27  ·  view source on GitHub ↗
(ctx context.Context, obj client.Object, opts ...client.CreateOption)

Source from the content-addressed store, hash-verified

22}
23
24func (d *DryRunClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error {
25 d.log.Info("dry-run: Create", "kind", obj.GetObjectKind().GroupVersionKind().Kind, "name", obj.GetName(), "namespace", obj.GetNamespace())
26 return nil
27}
28
29func (d *DryRunClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error {
30 d.log.Info("dry-run: Delete", "kind", obj.GetObjectKind().GroupVersionKind().Kind, "name", obj.GetName(), "namespace", obj.GetNamespace())

Callers 1

TestDryRunClientFunction · 0.95

Calls 2

InfoMethod · 0.80
GetNamespaceMethod · 0.65

Tested by 1

TestDryRunClientFunction · 0.76