Skip to content

Commit

Permalink
Add immediate request annotaion to auploaded dvs
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Jan 13, 2021
1 parent 124dc5b commit e4633bb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ const createUploadToken = async (pvcName: string, namespace: string): Promise<st
export const createUploadPVC = async (dataVolume: V1alpha1DataVolume) => {
const dataVolumeName = getName(dataVolume);
const namespace = getNamespace(dataVolume);
// BZ-1915694: uploaded DV must have "storage.bind.immediate.requested" annotation.
dataVolume.metadata.annotations = {
...dataVolume.metadata.annotations,
'storage.bind.immediate.requested': 'true',
};

try {
const dv = await k8sCreate(DataVolumeModel, dataVolume);
Expand Down

0 comments on commit e4633bb

Please sign in to comment.