You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.V(5).Info("PersistentVolumeClaim was created or updated, but it doesn't make this pod schedulable because the PVC belongs to a different namespace")
172
+
returnframework.QueueSkip, nil
173
+
}
174
+
175
+
for_, vol:=rangepod.Spec.Volumes {
176
+
varpvcNamestring
177
+
switch {
178
+
casevol.PersistentVolumeClaim!=nil:
179
+
pvcName=vol.PersistentVolumeClaim.ClaimName
180
+
casevol.Ephemeral!=nil:
181
+
pvcName=ephemeral.VolumeClaimName(pod, &vol)
182
+
default:
183
+
continue
184
+
}
185
+
186
+
ifpvcName==newPVC.Name {
187
+
// Return Queue because, in this case,
188
+
// all PVC creations and almost all PVC updates could make the Pod schedulable.
189
+
logger.V(5).Info("PersistentVolumeClaim the pod requires was created or updated, potentially making the target Pod schedulable")
190
+
returnframework.Queue, nil
191
+
}
192
+
}
193
+
194
+
logger.V(5).Info("PersistentVolumeClaim was created or updated, but it doesn't make this pod schedulable")
195
+
returnframework.QueueSkip, nil
196
+
}
197
+
154
198
// podHasPVCs returns 2 values:
155
199
// - the first one to denote if the given "pod" has any PVC defined.
156
200
// - the second one to return any error if the requested PVC is illegal.
0 commit comments