mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Run codegen
Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
parent
283aaaffc0
commit
75bcc7d6df
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user