We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e5ae41 + 497a316 commit 03f3b9bCopy full SHA for 03f3b9b
pkg/sidecar-controller/snapshot_controller_base.go
@@ -104,7 +104,7 @@ func NewCSISnapshotSideCarController(
104
// and CSI CreateSnapshot will be called again without exponential backoff.
105
// So we are skipping the re-queue here to avoid CreateSnapshot being called without exponential backoff.
106
newSnapContent := newObj.(*crdv1.VolumeSnapshotContent)
107
- if newSnapContent.Status.Error != nil {
+ if newSnapContent.Status != nil && newSnapContent.Status.Error != nil {
108
oldSnapContent := oldObj.(*crdv1.VolumeSnapshotContent)
109
_, newExists := newSnapContent.ObjectMeta.Annotations[utils.AnnVolumeSnapshotBeingCreated]
110
_, oldExists := oldSnapContent.ObjectMeta.Annotations[utils.AnnVolumeSnapshotBeingCreated]
0 commit comments