Skip to content

Commit

Permalink
Fix VolumeResourceRequirements
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Shephard <[email protected]>
  • Loading branch information
bshephar committed Feb 14, 2024
1 parent 7c66b75 commit d937f31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/swiftstorage/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ func getStorageContainers(swiftstorage *swiftv1beta1.SwiftStorage) []corev1.Cont
}

func StatefulSet(
swiftstorage *swiftv1beta1.SwiftStorage, labels map[string]string, annotations map[string]string) *appsv1.StatefulSet {

swiftstorage *swiftv1beta1.SwiftStorage, labels map[string]string, annotations map[string]string,
) *appsv1.StatefulSet {
trueVal := true
OnRootMismatch := corev1.FSGroupChangeOnRootMismatch
user := int64(swift.RunAsUser)
Expand Down Expand Up @@ -238,7 +238,7 @@ func StatefulSet(
AccessModes: []corev1.PersistentVolumeAccessMode{
corev1.ReadWriteOnce,
},
Resources: corev1.ResourceRequirements{
Resources: corev1.VolumeResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceStorage: resource.MustParse(swiftstorage.Spec.StorageRequest),
},
Expand Down

0 comments on commit d937f31

Please sign in to comment.