Skip to content

Commit

Permalink
Merge pull request #979 from harvester/mergify/bp/release-harvester-v…
Browse files Browse the repository at this point in the history
…1.2/pr-944

Fix volume status Not-Ready (backport #944)
  • Loading branch information
bk201 committed Mar 27, 2024
2 parents 4df3681 + 21d30a1 commit 7fc871d
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 7fc871d

Please sign in to comment.