File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -180,12 +180,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
180
180
glog .V (6 ).Info (pcb .Messagef (`beginning to process resourceVersion: %v` , binding .ResourceVersion ))
181
181
182
182
if binding .Status .AsyncOpInProgress {
183
- toUpdate , err := makeServiceBindingClone (binding )
184
- if err != nil {
185
- return err
186
- }
187
-
188
- return c .pollServiceBinding (toUpdate )
183
+ return c .pollServiceBinding (binding )
189
184
}
190
185
191
186
if isServiceBindingFailed (binding ) && binding .ObjectMeta .DeletionTimestamp == nil && ! binding .Status .OrphanMitigationInProgress {
@@ -1236,6 +1231,11 @@ func (c *controller) pollServiceBinding(binding *v1beta1.ServiceBinding) error {
1236
1231
1237
1232
glog .V (4 ).Infof (pcb .Message ("Processing" ))
1238
1233
1234
+ binding , err := makeServiceBindingClone (binding )
1235
+ if err != nil {
1236
+ return err
1237
+ }
1238
+
1239
1239
instance , err := c .instanceLister .ServiceInstances (binding .Namespace ).Get (binding .Spec .ServiceInstanceRef .Name )
1240
1240
if err != nil {
1241
1241
return fmt .Errorf ("could not get instance for ServiceBinding %v/%v" , binding .Namespace , binding .Name )
You can’t perform that action at this time.
0 commit comments