Skip to content

Commit

Permalink
pvc_annotator: ignore applying hints if 'created' OR 'creating'
Browse files Browse the repository at this point in the history
  • Loading branch information
chaireze committed Aug 10, 2023
1 parent 6887eb5 commit 94f7717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/edgecache/cachevolume/pvc_annotator.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (c *PVCAnnotator) buildAnnotations(pv *v1.PersistentVolume, cfg config.Azur
func (c *PVCAnnotator) needsToBeProvisioned(pvc *v1.PersistentVolumeClaim) bool {
// check if pv connected to the pvc has already been passed to be created
pvState, pvStateOk := pvc.ObjectMeta.Annotations[volumeStateAnnotation]
if pvStateOk && pvState == "created" {
if pvStateOk && (pvState == "created" || pvState == "creating") {
return false
}

Expand Down

0 comments on commit 94f7717

Please sign in to comment.