@@ -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
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user