(namespace string)
| 62 | } |
| 63 | |
| 64 | func 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 | |
| 76 | func getClusterServiceAccount(client crclient.Client, ctx context.Context, namespace string) (*corev1.ServiceAccount, error) { |
| 77 | serviceAccount := &corev1.ServiceAccount{} |