Skip to content

Commit

Permalink
Update k8s_pvc.go (#231)
Browse files Browse the repository at this point in the history
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]
```
  • Loading branch information
mojtaba-esk authored Jan 19, 2024
1 parent bf9c3a4 commit 25bab2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/k8s/k8s_pvc.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func createPersistentVolumeClaim(
},
Spec: v1.PersistentVolumeClaimSpec{
AccessModes: accessModes,
Resources: v1.ResourceRequirements{
Resources: v1.VolumeResourceRequirements{
Requests: v1.ResourceList{
v1.ResourceStorage: size,
},
Expand Down

0 comments on commit 25bab2d

Please sign in to comment.