| 126 | } |
| 127 | |
| 128 | func getValidateWebhook(ctx context.Context, c client.Client, validateWebhookCfg *admregv1.ValidatingWebhookConfiguration) (*admregv1.ValidatingWebhookConfiguration, error) { |
| 129 | existingCfg := &admregv1.ValidatingWebhookConfiguration{} |
| 130 | err := c.Get(ctx, types.NamespacedName{ |
| 131 | Name: validateWebhookCfg.Name, |
| 132 | Namespace: validateWebhookCfg.Namespace, |
| 133 | }, existingCfg) |
| 134 | return existingCfg, err |
| 135 | } |
| 136 | |
| 137 | func controllerSAUID(ctx context.Context, c client.Client) (string, string, error) { |
| 138 | saName, err := config.GetWorkspaceControllerSA() |