(identifier: string)
| 203 | }; |
| 204 | |
| 205 | export const extractServiceAccountId = (identifier: string) => { |
| 206 | const matches = identifier.match( |
| 207 | /^(?:serviceAccount:|serviceAccounts\/)(.+)$/ |
| 208 | ); |
| 209 | return matches?.[1] ?? identifier; |
| 210 | }; |
| 211 | |
| 212 | export const extractWorkloadIdentityId = (identifier: string) => { |
| 213 | const matches = identifier.match( |
no outgoing calls
no test coverage detected