Skip to content

Commit 42945d6

Browse files
author
Valeriy Khorunzhin
committed
patch
Signed-off-by: Valeriy Khorunzhin <[email protected]>
1 parent 6dcaa31 commit 42945d6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

images/cdi-artifact/patches/022-kek.patch

+12
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ index 6c6fd8f8a..ded727513 100644
9797
return pvcPrime, nil
9898
}
9999

100+
diff --git a/pkg/controller/upload-controller.go b/pkg/controller/upload-controller.go
101+
index 4c153257a..972eef824 100644
102+
--- a/pkg/controller/upload-controller.go
103+
+++ b/pkg/controller/upload-controller.go
104+
@@ -458,6 +458,7 @@ func (r *UploadReconciler) createUploadPodForPvc(pvc *corev1.PersistentVolumeCla
105+
106+
func (r *UploadReconciler) getOrCreateScratchPvc(pvc *corev1.PersistentVolumeClaim, pod *corev1.Pod, name string) (*corev1.PersistentVolumeClaim, error) {
107+
// Set condition, then check if need to override with scratch pvc message
108+
+ fmt.Println("Getting or creating scratch")
109+
anno := pvc.Annotations
110+
scratchPvc := &corev1.PersistentVolumeClaim{}
111+
if err := r.client.Get(context.TODO(), types.NamespacedName{Name: name, Namespace: pvc.Namespace}, scratchPvc); err != nil {
100112
diff --git a/pkg/controller/util.go b/pkg/controller/util.go
101113
index 4d25ae36b..2cd5c5d3a 100644
102114
--- a/pkg/controller/util.go

0 commit comments

Comments
 (0)