File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,7 @@ export async function loadFileToSpec(
494494 return
495495 }
496496 }
497+ // TODO: Remove workaround for User currently relying on id in console
497498 if ( fileMap . kind === 'AplUser' ) {
498499 data . spec . id = data . metadata ?. name
499500 }
@@ -507,6 +508,10 @@ export async function loadFileToSpec(
507508 }
508509 } else {
509510 const ref : Record < string , any > = get ( spec , jsonPath )
511+ // TODO: Remove workaround for Team settings currently relying on id in console
512+ if ( fileMap . kind === 'AplTeamSettingSet' ) {
513+ data . spec . name = data . metadata ?. name
514+ }
510515 // Decrypted secrets may need to be merged with plain text specs
511516 const newRef = merge ( cloneDeep ( ref ) , data ?. spec )
512517 set ( spec , jsonPath , newRef )
You can’t perform that action at this time.
0 commit comments