Skip to content

Commit

Permalink
Add astorage.bind.immediate.requested-annotaion to dv in cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Feb 8, 2021
1 parent c7d3829 commit 59b866e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ Cypress.Commands.add('createDataVolume', (name: string, namespace: string) => {
cy.fixture('data-volume').then((dv) => {
dv.metadata.name = name;
dv.metadata.namespace = namespace;
dv.metadata = dv?.metadata || {};
dv.metadata.annotations = {
...(dv?.metadata?.annotations || {}),
'cdi.kubevirt.io/storage.bind.immediate.requested': 'true',
};
const storageClass = Cypress.env('STORAGE_CLASS');
dv.spec.pvc.accessModes = storageClass
? [configMap.data[`${storageClass}.accessMode`]]
Expand Down

0 comments on commit 59b866e

Please sign in to comment.