Run codegen

Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
Stephen Kitt 2024-05-27 11:07:26 +02:00
parent 283aaaffc0
commit 75bcc7d6df
No known key found for this signature in database
GPG Key ID: 1CC5FA453662A71D
2 changed files with 16 additions and 2 deletions

View File

@ -198,11 +198,12 @@ func (c *FakeTestTypes) ApplyStatus(ctx context.Context, testType *examplev1.Tes
// GetClusterTestType takes name of the testType, and returns the corresponding testType object, and an error if there is any.
func (c *FakeTestTypes) GetClusterTestType(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TestType, err error) {
emptyResult := &v1.TestType{}
obj, err := c.Fake.
Invokes(testing.NewGetAction(testtypesResource, c.ns, name), &v1.TestType{})
Invokes(testing.NewGetAction(testtypesResource, c.ns, name), emptyResult)
if obj == nil {
return nil, err
return emptyResult, err
}
return obj.(*v1.TestType), err
}

View File

@ -295,3 +295,16 @@ func (c *testTypes) ApplyStatus(ctx context.Context, testType *examplev1.TestTyp
Into(result)
return
}
// GetClusterTestType takes name of the testType, and returns the corresponding testType object, and an error if there is any.
func (c *testTypes) GetClusterTestType(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TestType, err error) {
result = &v1.TestType{}
err = c.client.Get().
Namespace(c.ns).
Resource("testtypes").
Name(name).
VersionedParams(&options, scheme.ParameterCodec).
Do(ctx).
Into(result)
return
}