Skip to content

Commit

Permalink
Update PersistentVolumeClaimSpec arguments
Browse files Browse the repository at this point in the history
Newer versions of the k8s.io/api package changed the arguments accepted
by PersistentVolumeClaimSpec. This commit updates the arguments so that
it works with newer versions of k8s.io/api, which is getting pulled in
with our dependencies.
  • Loading branch information
rhmdnd committed Jul 30, 2024
1 parent e29f404 commit 8a32b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/compliancescan/rawresults.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func getPVCForScan(instance *compv1alpha1.ComplianceScan) *corev1.PersistentVolu
Spec: corev1.PersistentVolumeClaimSpec{
StorageClassName: instance.Spec.RawResultStorage.StorageClassName,
AccessModes: accessModes,
Resources: corev1.ResourceRequirements{
Resources: corev1.VolumeResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceStorage: resource.MustParse(storageSize),
},
Expand Down

0 comments on commit 8a32b10

Please sign in to comment.