Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ export async function loadFileToSpec(
return
}
}
// TODO: Remove workaround for User currently relying on id in console
if (fileMap.kind === 'AplUser') {
data.spec.id = data.metadata?.name
}
Expand All @@ -507,6 +508,10 @@ export async function loadFileToSpec(
}
} else {
const ref: Record<string, any> = get(spec, jsonPath)
// TODO: Remove workaround for Team settings currently relying on id in console
if (fileMap.kind === 'AplTeamSettingSet') {
data.spec.name = data.metadata?.name
}
// Decrypted secrets may need to be merged with plain text specs
const newRef = merge(cloneDeep(ref), data?.spec)
set(spec, jsonPath, newRef)
Expand Down
Loading