Skip to content

Commit 9d95e88

Browse files
authored
fix: return workload values correctly from workloads get endpoint (#869)
1 parent e4d32da commit 9d95e88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/otomi-stack.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CoreV1Api, User as k8sUser, KubeConfig, V1ObjectReference } from '@kubernetes/client-node'
1+
import { CoreV1Api, KubeConfig, User as k8sUser, V1ObjectReference } from '@kubernetes/client-node'
22
import Debug from 'debug'
33

44
import { getRegions, ObjectStorageKeyRegions } from '@linode/api-v4'
@@ -1667,9 +1667,11 @@ export default class OtomiStack {
16671667

16681668
getAplWorkload(teamId: string, name: string): AplWorkloadResponse {
16691669
const workload = this.fileStore.getTeamResource('AplTeamWorkload', teamId, name)
1670+
const workloadValues = this.fileStore.getTeamResource('AplTeamWorkloadValues', teamId, name)
16701671
if (!workload) {
16711672
throw new NotExistError(`Workload ${name} not found in team ${teamId}`)
16721673
}
1674+
set(workload, 'spec.values', workloadValues || '')
16731675
return workload as AplWorkloadResponse
16741676
}
16751677

0 commit comments

Comments
 (0)