MCPcopy Create free account
hub / github.com/bytebase/bytebase / extractServiceAccountId

Function extractServiceAccountId

frontend/src/store/modules/v1/common.ts:205–210  ·  view source on GitHub ↗
(identifier: string)

Source from the content-addressed store, hash-verified

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

Callers 1

convertMemberToFullnameFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected