(name string, replicas *int32)
| 71 | } |
| 72 | |
| 73 | func newFoo(name string, replicas *int32) *samplecontroller.Foo { |
| 74 | return &samplecontroller.Foo{ |
| 75 | TypeMeta: metav1.TypeMeta{APIVersion: samplecontroller.SchemeGroupVersion.String()}, |
| 76 | ObjectMeta: metav1.ObjectMeta{ |
| 77 | Name: name, |
| 78 | Namespace: metav1.NamespaceDefault, |
| 79 | }, |
| 80 | Spec: samplecontroller.FooSpec{ |
| 81 | DeploymentName: fmt.Sprintf("%s-deployment", name), |
| 82 | Replicas: replicas, |
| 83 | }, |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | func (f *fixture) newController(ctx context.Context) (*Controller, informers.SharedInformerFactory, kubeinformers.SharedInformerFactory) { |
| 88 | f.client = fake.NewClientset(f.objects...) |
no outgoing calls
no test coverage detected
searching dependent graphs…