From 25bab2d67d7e390ab1a56307f59ba975f724c19d Mon Sep 17 00:00:00 2001 From: Mojtaba Date: Fri, 19 Jan 2024 10:24:27 +0100 Subject: [PATCH] Update k8s_pvc.go (#231) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Getting the following error, this PR attempts to fix it: ```sh /pkg/k8s/k8s_pvc.go:29:15: cannot use v1.ResourceRequirements{…} (value of type "k8s.io/api/core/v1".ResourceRequirements) as "k8s.io/api/core/v1".VolumeResourceRequirements value in struct literal FAIL github.com/celestiaorg/knuu-example/basic [build failed] ``` --- pkg/k8s/k8s_pvc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/k8s/k8s_pvc.go b/pkg/k8s/k8s_pvc.go index 1574c76..bb01bbe 100644 --- a/pkg/k8s/k8s_pvc.go +++ b/pkg/k8s/k8s_pvc.go @@ -26,7 +26,7 @@ func createPersistentVolumeClaim( }, Spec: v1.PersistentVolumeClaimSpec{ AccessModes: accessModes, - Resources: v1.ResourceRequirements{ + Resources: v1.VolumeResourceRequirements{ Requests: v1.ResourceList{ v1.ResourceStorage: size, },