(email string)
| 7 | ) |
| 8 | |
| 9 | func validateServiceAccountEmail(email string) error { |
| 10 | if err := common.ValidateEmail(email); err != nil { |
| 11 | return err |
| 12 | } |
| 13 | if !common.IsServiceAccountEmail(email) { |
| 14 | return errors.Errorf("email must end with %s", common.ServiceAccountSuffix) |
| 15 | } |
| 16 | return nil |
| 17 | } |
| 18 | |
| 19 | func validateWorkloadIdentityEmail(email string) error { |
| 20 | if err := common.ValidateEmail(email); err != nil { |