Skip to content

Commit

Permalink
Size v capacity in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrdrew authored and psav committed May 6, 2022
1 parent 2e98143 commit 8dd2c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/cloud.redhat.com/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,13 @@ func MakeService(service *core.Service, nn types.NamespacedName, labels map[stri
}

// MakePVC takes a PVC object and applies the correct ownership and labels to it.
func MakePVC(pvc *core.PersistentVolumeClaim, nn types.NamespacedName, labels map[string]string, size string, baseResource obj.ClowdObject) {
func MakePVC(pvc *core.PersistentVolumeClaim, nn types.NamespacedName, labels map[string]string, capacity string, baseResource obj.ClowdObject) {
labeler := GetCustomLabeler(labels, nn, baseResource)
labeler(pvc)
pvc.Spec.AccessModes = []core.PersistentVolumeAccessMode{core.ReadWriteOnce}
pvc.Spec.Resources = core.ResourceRequirements{
Requests: core.ResourceList{
core.ResourceName(core.ResourceStorage): resource.MustParse(size),
core.ResourceName(core.ResourceStorage): resource.MustParse(capacity),
},
}
}
Expand Down

0 comments on commit 8dd2c08

Please sign in to comment.