Skip to content

Commit

Permalink
Volume status retro-compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <[email protected]>
(cherry picked from commit d9bf76d)
  • Loading branch information
torchiaf authored and mergify[bot] committed Mar 27, 2024
1 parent da8aa2e commit 21d30a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/harvester/models/harvester/persistentvolumeclaim.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export default class HciPv extends HarvesterResource {
let ready = true;
const longhornVolume = this.longhornVolume || {};

const scheduledCondition = (longhornVolume?.status?.conditions || []).find(c => c.type === 'Scheduled') || {};
const scheduledCondition = (longhornVolume?.status?.conditions || []).find(c => c.type === 'Scheduled' || c.type === 'scheduled') || {};

if ((longhornVolume?.spec?.nodeID === '' && longhornVolume?.status?.state !== 'detached') ||
(longhornVolume?.status?.state === 'detached' && scheduledCondition.status !== 'True') ||
Expand Down

0 comments on commit 21d30a1

Please sign in to comment.