Skip to content

Commit b30e55e

Browse files
committed
chore: linter fixes
Signed-off-by: Giulio Frasca <[email protected]>
1 parent f7e3f01 commit b30e55e

File tree

1 file changed

+2
-3
lines changed
  • backend/src/v2/compiler/argocompiler

1 file changed

+2
-3
lines changed

backend/src/v2/compiler/argocompiler/argo.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
"google.golang.org/protobuf/proto"
3232
"google.golang.org/protobuf/types/known/structpb"
3333
k8score "k8s.io/api/core/v1"
34-
"k8s.io/apimachinery/pkg/api/resource"
3534
k8sres "k8s.io/apimachinery/pkg/api/resource"
3635
k8smeta "k8s.io/apimachinery/pkg/apis/meta/v1"
3736
)
@@ -543,15 +542,15 @@ func GetWorkspacePVC(
543542
}
544543
}
545544

546-
quantity, err := resource.ParseQuantity(sizeStr)
545+
quantity, err := k8sres.ParseQuantity(sizeStr)
547546
if err != nil {
548547
return k8score.PersistentVolumeClaim{}, fmt.Errorf("invalid size value for workspace PVC: %v", err)
549548
}
550549
if quantity.Sign() < 0 {
551550
return k8score.PersistentVolumeClaim{}, fmt.Errorf("negative size value for workspace PVC: %v", sizeStr)
552551
}
553552
if pvcSpec.Resources.Requests == nil {
554-
pvcSpec.Resources.Requests = make(map[k8score.ResourceName]resource.Quantity)
553+
pvcSpec.Resources.Requests = make(map[k8score.ResourceName]k8sres.Quantity)
555554
}
556555
pvcSpec.Resources.Requests[k8score.ResourceStorage] = quantity
557556

0 commit comments

Comments
 (0)