MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / getSpecServiceAccount

Function getSpecServiceAccount

pkg/webhook/service_account.go:64–74  ·  view source on GitHub ↗
(namespace string)

Source from the content-addressed store, hash-verified

62}
63
64func getSpecServiceAccount(namespace string) (*corev1.ServiceAccount, error) {
65 serviceAccount := &corev1.ServiceAccount{
66 ObjectMeta: metav1.ObjectMeta{
67 Name: server.WebhookServerSAName,
68 Namespace: namespace,
69 Labels: server.WebhookServerAppLabels(),
70 },
71 }
72
73 return serviceAccount, nil
74}
75
76func getClusterServiceAccount(client crclient.Client, ctx context.Context, namespace string) (*corev1.ServiceAccount, error) {
77 serviceAccount := &corev1.ServiceAccount{}

Callers 1

CreateWebhookSAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected