Skip to content

Commit 7b2408c

Browse files
cbandydsessler7
authored andcommitted
Quiet linter warnings about new volume conditions
These are new in k8s.io/[email protected] and don't affect us.
1 parent 924c669 commit 7b2408c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

internal/controller/postgrescluster/volumes.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ func (r *Reconciler) observePersistentVolumeClaims(
130130
resizing.LastTransitionTime = minNotZero(
131131
resizing.LastTransitionTime, condition.LastTransitionTime)
132132
}
133+
134+
case
135+
// The "ModifyingVolume" and "ModifyVolumeError" conditions occur
136+
// when the attribute class of a PVC is changing. These attributes
137+
// do not affect the size of a volume, so there's nothing to do.
138+
// See the "VolumeAttributesClass" feature gate.
139+
// - https://git.k8s.io/enhancements/keps/sig-storage/3751-volume-attributes-class
140+
corev1.PersistentVolumeClaimVolumeModifyingVolume,
141+
corev1.PersistentVolumeClaimVolumeModifyVolumeError:
133142
}
134143
}
135144
}

0 commit comments

Comments
 (0)