(ctx context.Context, name, namespace string, cl client.Client)
| 97 | } |
| 98 | |
| 99 | func createSA(ctx context.Context, name, namespace string, cl client.Client) client.Object { |
| 100 | sa := &corev1.ServiceAccount{ |
| 101 | ObjectMeta: metav1.ObjectMeta{ |
| 102 | Name: name, |
| 103 | Namespace: namespace, |
| 104 | }, |
| 105 | } |
| 106 | err := cl.Create(ctx, sa) |
| 107 | Expect(err).NotTo(HaveOccurred()) |
| 108 | return sa |
| 109 | } |
| 110 | |
| 111 | func createPod(ctx context.Context, name, namespace string, restartPolicy corev1.RestartPolicy) client.Object { |
| 112 | return createPodWithLabels(ctx, name, namespace, restartPolicy, nil) |
no test coverage detected
searching dependent graphs…