Skip to content

Commit

Permalink
Remove special handling for old bug in dell vxflex csi driver (#2716)
Browse files Browse the repository at this point in the history
  • Loading branch information
bathina2 authored Mar 6, 2024
1 parent 9295f25 commit 2c54831
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
11 changes: 0 additions & 11 deletions pkg/kube/snapshot/snapshot_alpha.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const (
DeletionPolicyDelete = "Delete"
DeletionPolicyRetain = "Retain"
CloneVolumeSnapshotClassLabelName = "kanister-cloned-from"
DellFlexOSDriver = "csi-vxflexos.dellemc.com"
)

type SnapshotAlpha struct {
Expand Down Expand Up @@ -276,16 +275,6 @@ func (sna *SnapshotAlpha) CreateFromSource(ctx context.Context, source *Source,
if !waitForReady {
return nil
}
if source.Driver == DellFlexOSDriver {
// Temporary work around till upstream issue is resolved-
// github- https://github.com/dell/csi-vxflexos/pull/11
// forum- https://www.dell.com/community/Containers/Issue-where-volumeSnapshots-have-ReadyToUse-field-set-to-false/m-p/7685881#M249
err := sna.UpdateVolumeSnapshotStatusAlpha(ctx, namespace, snap.GetName(), true)
if err != nil {
return err
}
}

return sna.WaitOnReadyToUse(ctx, snapshotName, namespace)
}

Expand Down
9 changes: 0 additions & 9 deletions pkg/kube/snapshot/snapshot_beta.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,6 @@ func (sna *SnapshotBeta) CreateFromSource(ctx context.Context, source *Source, s
if !waitForReady {
return nil
}
if source.Driver == DellFlexOSDriver {
// Temporary work around till upstream issue is resolved-
// github- https://github.com/dell/csi-vxflexos/pull/11
// forum- https://www.dell.com/community/Containers/Issue-where-volumeSnapshots-have-ReadyToUse-field-set-to-false/m-p/7685881#M249
err := sna.UpdateVolumeSnapshotStatusBeta(ctx, namespace, snap.GetName(), true)
if err != nil {
return err
}
}
err = sna.WaitOnReadyToUse(ctx, snapshotName, namespace)
return err
}
Expand Down
9 changes: 0 additions & 9 deletions pkg/kube/snapshot/snapshot_stable.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,6 @@ func (sna *SnapshotStable) CreateFromSource(ctx context.Context, source *Source,
if !waitForReady {
return nil
}
if source.Driver == DellFlexOSDriver {
// Temporary work around till upstream issue is resolved-
// github- https://github.com/dell/csi-vxflexos/pull/11
// forum- https://www.dell.com/community/Containers/Issue-where-volumeSnapshots-have-ReadyToUse-field-set-to-false/m-p/7685881#M249
err := sna.UpdateVolumeSnapshotStatusStable(ctx, namespace, snap.GetName(), true)
if err != nil {
return err
}
}
err = sna.WaitOnReadyToUse(ctx, snapshotName, namespace)
return err
}
Expand Down

0 comments on commit 2c54831

Please sign in to comment.