Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'VolumeName' field instead of 'Selector' which is not supported #58

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions internal/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (i *Internal) getCSIDataVolumeLabels(ctx context.Context, job *model.Job) (
return nil, err
}

labels["volume-name"] = i.getCSIDataVolumeClaimName(job)
labels["volume-name"] = i.getCSIDataVolumeName(job)
return labels, nil
}

Expand Down Expand Up @@ -240,11 +240,7 @@ func (i *Internal) getPersistentVolumeClaims(ctx context.Context, job *model.Job
apiv1.ReadWriteMany,
},
StorageClassName: &storageclassname,
Selector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"volume-name": i.getCSIDataVolumeClaimName(job),
},
},
VolumeName: i.getCSIDataVolumeName(job),
Resources: apiv1.ResourceRequirements{
Requests: apiv1.ResourceList{
apiv1.ResourceStorage: defaultStorageCapacity,
Expand Down