MCPcopy
hub / github.com/kubernetes-sigs/controller-runtime / createSA

Function createSA

pkg/cache/cache_test.go:99–109  ·  view source on GitHub ↗
(ctx context.Context, name, namespace string, cl client.Client)

Source from the content-addressed store, hash-verified

97}
98
99func 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
111func createPod(ctx context.Context, name, namespace string, restartPolicy corev1.RestartPolicy) client.Object {
112 return createPodWithLabels(ctx, name, namespace, restartPolicy, nil)

Callers 1

cache_test.goFile · 0.85

Calls 1

CreateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…