Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <vladislav@kubeshop.io>
  • Loading branch information
vsukhin committed Dec 18, 2024
1 parent 691a5e9 commit 19fadbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/mapper/testworkflows/kube_openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -1243,16 +1243,16 @@ func MapResourcesListKubeCoreToAPI(v corev1.ResourceList) *testkube.TestWorkflow
}

res := &testkube.TestWorkflowResourcesList{}
if q, ok := v[corev1.ResourceCPU]; !ok {
if q, ok := v[corev1.ResourceCPU]; ok {
res.Cpu = q.String()
}
if q, ok := v[corev1.ResourceMemory]; !ok {
if q, ok := v[corev1.ResourceMemory]; ok {
res.Memory = q.String()
}
if q, ok := v[corev1.ResourceStorage]; !ok {
if q, ok := v[corev1.ResourceStorage]; ok {
res.Storage = q.String()
}
if q, ok := v[corev1.ResourceEphemeralStorage]; !ok {
if q, ok := v[corev1.ResourceEphemeralStorage]; ok {
res.EphemeralStorage = q.String()
}
return res
Expand Down

0 comments on commit 19fadbf

Please # to comment.