Skip to content

reclaimspace: consider VA object only it is attached & not being deleted#285

Merged
mergify[bot] merged 1 commit into
csi-addons:mainfrom
Rakshith-R:va-object
Jan 2, 2023
Merged

reclaimspace: consider VA object only it is attached & not being deleted#285
mergify[bot] merged 1 commit into
csi-addons:mainfrom
Rakshith-R:va-object

Conversation

@Rakshith-R

Copy link
Copy Markdown
Member

This commit makes modification to ignore Volume Attachment objects which are being deleted or not attached.

Signed-off-by: Rakshith R rar@redhat.com

This commit makes modification to ignore Volume Attachment objects
which are being deleted or not attached.

Signed-off-by: Rakshith R <rar@redhat.com>
@mergify mergify Bot requested review from Yuggupta27, nixpanic and yati1998 January 2, 2023 07:23
@Rakshith-R Rakshith-R requested review from Madhu-1 and humblec January 2, 2023 07:27
}
for _, v := range volumeAttachments.Items {
if *v.Spec.Source.PersistentVolumeName == pv.Name {
if v.DeletionTimestamp.IsZero() && v.Status.Attached && *v.Spec.Source.PersistentVolumeName == pv.Name {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not true for controller space reclaim, as PV is not required to be attached, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not true for controller space reclaim, as PV is not required to be attached, right?

We don't need node information for performing controller space reclaim.
It will still happen.

@Rakshith-R Rakshith-R requested a review from Madhu-1 January 2, 2023 07:39
@mergify mergify Bot merged commit 4dda11c into csi-addons:main Jan 2, 2023
black-dragon74 pushed a commit to black-dragon74/kubernetes-csi-addons that referenced this pull request Jul 31, 2025
DFBUGS-1951: update golang.org/x/oauth2 to v0.27 to address CVE-2025-22868
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants