From d937f318b5d9b849adc25e0b5350f25ed646d296 Mon Sep 17 00:00:00 2001 From: Brendan Shephard Date: Wed, 7 Feb 2024 12:30:29 +1000 Subject: [PATCH] Fix VolumeResourceRequirements Signed-off-by: Brendan Shephard --- pkg/swiftstorage/statefulset.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/swiftstorage/statefulset.go b/pkg/swiftstorage/statefulset.go index 9f00edfe..893166f5 100644 --- a/pkg/swiftstorage/statefulset.go +++ b/pkg/swiftstorage/statefulset.go @@ -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) @@ -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), },