Skip to content

Commit

Permalink
Merge pull request #59 from dell/go_module_fix
Browse files Browse the repository at this point in the history
Go module fix
  • Loading branch information
suryagupta4 authored Feb 20, 2024
2 parents bcc314e + c0fbe65 commit e072b84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/k8sclient/resources/pvc/pvc.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (c *Client) MakePVC(cfg *Config) *v1.PersistentVolumeClaim {
Spec: v1.PersistentVolumeClaimSpec{
Selector: cfg.Selector,
AccessModes: cfg.AccessModes,
Resources: v1.ResourceRequirements{
Resources: v1.VolumeResourceRequirements{
Requests: v1.ResourceList{
v1.ResourceStorage: resource.MustParse(cfg.ClaimSize),
},
Expand Down Expand Up @@ -438,7 +438,7 @@ func (c *Client) CreatePVCObject(ctx context.Context, remotePVObject *v1.Persist
},
Spec: v1.PersistentVolumeClaimSpec{
AccessModes: accessMode,
Resources: v1.ResourceRequirements{
Resources: v1.VolumeResourceRequirements{
Requests: requestsResReq,
},
VolumeName: remotePVName,
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8sclient/resources/statefulset/sts.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (c *Client) MakeStatefulSet(config *Config) *appsv1.StatefulSet {
},
Spec: v1.PersistentVolumeClaimSpec{
AccessModes: []v1.PersistentVolumeAccessMode{"ReadWriteOnce"},
Resources: v1.ResourceRequirements{
Resources: v1.VolumeResourceRequirements{
Requests: v1.ResourceList{
v1.ResourceStorage: resource.MustParse(config.ClaimSize),
},
Expand Down

0 comments on commit e072b84

Please sign in to comment.