MCPcopy Index your code
hub / github.com/operator-framework/operator-sdk / DoCreate

Method DoCreate

internal/olm/client/client.go:121–134  ·  view source on GitHub ↗
(ctx context.Context, objs ...client.Object)

Source from the content-addressed store, hash-verified

119}
120
121func (c Client) DoCreate(ctx context.Context, objs ...client.Object) error {
122 for _, obj := range objs {
123 kind := obj.GetObjectKind().GroupVersionKind().Kind
124 resourceName := getName(obj.GetNamespace(), obj.GetName())
125
126 log.Infof(" Creating %s %q", kind, resourceName)
127
128 if err := c.safeCreateOneResource(ctx, obj, kind, resourceName); err != nil {
129 log.Infof(" failed to create %s %q; %v", kind, resourceName, err)
130 return err
131 }
132 }
133 return nil
134}
135
136// try to create resource until context is cancelled
137// or resource is created successfully

Callers 3

InstallVersionMethod · 0.95
client_test.goFile · 0.80

Calls 2

safeCreateOneResourceMethod · 0.95
getNameFunction · 0.85

Tested by

no test coverage detected