mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-04 11:32:15 +08:00
* fresh new branch * Added coverage to gitignore Signed-off-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MBP.lan> * reverted package-lock.json Signed-off-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MBP.lan> Co-authored-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MBP.lan>
9 lines
216 B
TypeScript
9 lines
216 B
TypeScript
export function parseAnnotations(str: string) {
|
|
if (str == '') {
|
|
return new Map<string, string>()
|
|
} else {
|
|
const annotation = JSON.parse(str)
|
|
return new Map<string, string>(annotation)
|
|
}
|
|
}
|