@@ -133,7 +133,7 @@ func (c *controller) setAndUpdateOrphanMitigation(binding *v1beta1.ServiceBindin
133
133
toUpdate .Status .OperationStartTime = nil
134
134
glog .V (5 ).Info (s )
135
135
136
- c . setServiceBindingCondition (
136
+ setServiceBindingCondition (
137
137
toUpdate ,
138
138
v1beta1 .ServiceBindingConditionReady ,
139
139
v1beta1 .ConditionFalse ,
@@ -197,7 +197,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
197
197
typeSB , binding .Namespace , binding .Name , s , err ,
198
198
)
199
199
c .recorder .Event (binding , corev1 .EventTypeWarning , errorNonexistentServiceInstanceReason , s )
200
- c . setServiceBindingCondition (
200
+ setServiceBindingCondition (
201
201
toUpdate ,
202
202
v1beta1 .ServiceBindingConditionReady ,
203
203
v1beta1 .ConditionFalse ,
@@ -217,7 +217,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
217
217
)
218
218
glog .Info (s )
219
219
c .recorder .Event (binding , corev1 .EventTypeWarning , errorWithOngoingAsyncOperation , s )
220
- c . setServiceBindingCondition (
220
+ setServiceBindingCondition (
221
221
toUpdate ,
222
222
v1beta1 .ServiceBindingConditionReady ,
223
223
v1beta1 .ConditionFalse ,
@@ -250,7 +250,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
250
250
typeSB , binding .Namespace , binding .Name , s ,
251
251
)
252
252
c .recorder .Event (binding , corev1 .EventTypeWarning , errorNonbindableClusterServiceClassReason , s )
253
- c . setServiceBindingCondition (
253
+ setServiceBindingCondition (
254
254
toUpdate ,
255
255
v1beta1 .ServiceBindingConditionReady ,
256
256
v1beta1 .ConditionFalse ,
@@ -277,7 +277,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
277
277
typeSB , binding .Namespace , binding .Name , s ,
278
278
)
279
279
c .recorder .Eventf (binding , corev1 .EventTypeWarning , errorFindingNamespaceServiceInstanceReason , s )
280
- c . setServiceBindingCondition (
280
+ setServiceBindingCondition (
281
281
toUpdate ,
282
282
v1beta1 .ServiceBindingConditionReady ,
283
283
v1beta1 .ConditionFalse ,
@@ -300,7 +300,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
300
300
typeSB , binding .Namespace , binding .Name , s ,
301
301
)
302
302
c .recorder .Eventf (binding , corev1 .EventTypeWarning , errorServiceInstanceNotReadyReason , s )
303
- c . setServiceBindingCondition (
303
+ setServiceBindingCondition (
304
304
toUpdate ,
305
305
v1beta1 .ServiceBindingConditionReady ,
306
306
v1beta1 .ConditionFalse ,
@@ -331,7 +331,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
331
331
typeSB , binding .Namespace , binding .Name , s ,
332
332
)
333
333
c .recorder .Event (binding , corev1 .EventTypeWarning , errorWithParameters , s )
334
- c . setServiceBindingCondition (
334
+ setServiceBindingCondition (
335
335
toUpdate ,
336
336
v1beta1 .ServiceBindingConditionReady ,
337
337
v1beta1 .ConditionFalse ,
@@ -352,7 +352,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
352
352
typeSB , binding .Namespace , binding .Name , s ,
353
353
)
354
354
c .recorder .Eventf (binding , corev1 .EventTypeWarning , errorWithParameters , s )
355
- c . setServiceBindingCondition (
355
+ setServiceBindingCondition (
356
356
toUpdate ,
357
357
v1beta1 .ServiceBindingConditionReady ,
358
358
v1beta1 .ConditionFalse ,
@@ -372,7 +372,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
372
372
typeSB , binding .Namespace , binding .Name , s ,
373
373
)
374
374
c .recorder .Eventf (binding , corev1 .EventTypeWarning , errorWithParameters , s )
375
- c . setServiceBindingCondition (
375
+ setServiceBindingCondition (
376
376
toUpdate ,
377
377
v1beta1 .ServiceBindingConditionReady ,
378
378
v1beta1 .ConditionFalse ,
@@ -415,7 +415,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
415
415
typeSB , binding .Namespace , binding .Name , s ,
416
416
)
417
417
c .recorder .Event (binding , corev1 .EventTypeWarning , errorWithOriginatingIdentity , s )
418
- c . setServiceBindingCondition (
418
+ setServiceBindingCondition (
419
419
toUpdate ,
420
420
v1beta1 .ServiceBindingConditionReady ,
421
421
v1beta1 .ConditionFalse ,
@@ -442,7 +442,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
442
442
response , err := brokerClient .Bind (request )
443
443
// orphan mitigation: looking for timeout
444
444
if netErr , ok := err .(net.Error ); ok && netErr .Timeout () {
445
- c . setServiceBindingCondition (
445
+ setServiceBindingCondition (
446
446
toUpdate ,
447
447
v1beta1 .ServiceBindingConditionFailed ,
448
448
v1beta1 .ConditionTrue ,
@@ -456,7 +456,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
456
456
if httpErr .StatusCode > 200 && httpErr .StatusCode < 300 ||
457
457
httpErr .StatusCode == http .StatusRequestTimeout ||
458
458
httpErr .StatusCode >= 500 && httpErr .StatusCode < 600 {
459
- c . setServiceBindingCondition (
459
+ setServiceBindingCondition (
460
460
toUpdate ,
461
461
v1beta1 .ServiceBindingConditionFailed ,
462
462
v1beta1 .ConditionTrue ,
@@ -474,14 +474,14 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
474
474
)
475
475
c .recorder .Event (binding , corev1 .EventTypeWarning , errorBindCallReason , s )
476
476
477
- c . setServiceBindingCondition (
477
+ setServiceBindingCondition (
478
478
toUpdate ,
479
479
v1beta1 .ServiceBindingConditionFailed ,
480
480
v1beta1 .ConditionTrue ,
481
481
"ServiceBindingReturnedFailure" ,
482
482
s ,
483
483
)
484
- c . setServiceBindingCondition (
484
+ setServiceBindingCondition (
485
485
toUpdate ,
486
486
v1beta1 .ServiceBindingConditionReady ,
487
487
v1beta1 .ConditionFalse ,
@@ -503,7 +503,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
503
503
typeSB , binding .Name , binding .Namespace , s ,
504
504
)
505
505
c .recorder .Event (binding , corev1 .EventTypeWarning , errorBindCallReason , s )
506
- c . setServiceBindingCondition (
506
+ setServiceBindingCondition (
507
507
toUpdate ,
508
508
v1beta1 .ServiceBindingConditionReady ,
509
509
v1beta1 .ConditionFalse ,
@@ -517,7 +517,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
517
517
typeSB , binding .Namespace , binding .Name , s ,
518
518
)
519
519
c .recorder .Event (binding , corev1 .EventTypeWarning , errorReconciliationRetryTimeoutReason , s )
520
- c . setServiceBindingCondition (toUpdate ,
520
+ setServiceBindingCondition (toUpdate ,
521
521
v1beta1 .ServiceBindingConditionFailed ,
522
522
v1beta1 .ConditionTrue ,
523
523
errorReconciliationRetryTimeoutReason ,
@@ -553,7 +553,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
553
553
typeSB , binding .Namespace , binding .Name , s ,
554
554
)
555
555
c .recorder .Event (binding , corev1 .EventTypeWarning , errorInjectingBindResultReason , s )
556
- c . setServiceBindingCondition (
556
+ setServiceBindingCondition (
557
557
toUpdate ,
558
558
v1beta1 .ServiceBindingConditionReady ,
559
559
v1beta1 .ConditionFalse ,
@@ -568,7 +568,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
568
568
)
569
569
glog .Info (s )
570
570
c .recorder .Event (binding , corev1 .EventTypeWarning , errorReconciliationRetryTimeoutReason , s )
571
- c . setServiceBindingCondition (toUpdate ,
571
+ setServiceBindingCondition (toUpdate ,
572
572
v1beta1 .ServiceBindingConditionFailed ,
573
573
v1beta1 .ConditionTrue ,
574
574
errorReconciliationRetryTimeoutReason ,
@@ -586,7 +586,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
586
586
587
587
c .clearServiceBindingCurrentOperation (toUpdate )
588
588
589
- c . setServiceBindingCondition (
589
+ setServiceBindingCondition (
590
590
toUpdate ,
591
591
v1beta1 .ServiceBindingConditionReady ,
592
592
v1beta1 .ConditionTrue ,
@@ -620,7 +620,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
620
620
typeSB , binding .Namespace , binding .Name , s ,
621
621
)
622
622
c .recorder .Eventf (binding , corev1 .EventTypeWarning , errorEjectingBindReason , "%v %v" , errorEjectingBindMessage , s )
623
- c . setServiceBindingCondition (
623
+ setServiceBindingCondition (
624
624
toUpdate ,
625
625
v1beta1 .ServiceBindingConditionReady ,
626
626
v1beta1 .ConditionUnknown ,
@@ -649,7 +649,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
649
649
typeSB , binding .Namespace , binding .Name , s ,
650
650
)
651
651
c .recorder .Event (binding , corev1 .EventTypeWarning , errorWithOriginatingIdentity , s )
652
- c . setServiceBindingCondition (
652
+ setServiceBindingCondition (
653
653
toUpdate ,
654
654
v1beta1 .ServiceBindingConditionReady ,
655
655
v1beta1 .ConditionFalse ,
@@ -688,14 +688,14 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
688
688
typeSB , binding .Namespace , binding .Name , s ,
689
689
)
690
690
c .recorder .Event (binding , corev1 .EventTypeWarning , errorUnbindCallReason , s )
691
- c . setServiceBindingCondition (
691
+ setServiceBindingCondition (
692
692
toUpdate ,
693
693
v1beta1 .ServiceBindingConditionReady ,
694
694
v1beta1 .ConditionUnknown ,
695
695
errorUnbindCallReason ,
696
696
"Unbind call failed. " + s )
697
697
if ! toUpdate .Status .OrphanMitigationInProgress {
698
- c . setServiceBindingCondition (
698
+ setServiceBindingCondition (
699
699
toUpdate ,
700
700
v1beta1 .ServiceBindingConditionFailed ,
701
701
v1beta1 .ConditionTrue ,
@@ -717,7 +717,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
717
717
typeSB , binding .Namespace , binding .Name , s ,
718
718
)
719
719
c .recorder .Event (binding , corev1 .EventTypeWarning , errorUnbindCallReason , s )
720
- c . setServiceBindingCondition (
720
+ setServiceBindingCondition (
721
721
toUpdate ,
722
722
v1beta1 .ServiceBindingConditionReady ,
723
723
v1beta1 .ConditionUnknown ,
@@ -731,7 +731,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
731
731
typeSB , binding .Namespace , binding .Name , s ,
732
732
)
733
733
c .recorder .Event (binding , corev1 .EventTypeWarning , errorReconciliationRetryTimeoutReason , s )
734
- c . setServiceBindingCondition (toUpdate ,
734
+ setServiceBindingCondition (toUpdate ,
735
735
v1beta1 .ServiceBindingConditionFailed ,
736
736
v1beta1 .ConditionTrue ,
737
737
errorReconciliationRetryTimeoutReason ,
@@ -750,7 +750,7 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
750
750
typeSB , binding .Namespace , binding .Name , s ,
751
751
)
752
752
c .recorder .Event (binding , corev1 .EventTypeWarning , errorReconciliationRetryTimeoutReason , s )
753
- c . setServiceBindingCondition (toUpdate ,
753
+ setServiceBindingCondition (toUpdate ,
754
754
v1beta1 .ServiceBindingConditionFailed ,
755
755
v1beta1 .ConditionTrue ,
756
756
errorReconciliationRetryTimeoutReason ,
@@ -774,14 +774,14 @@ func (c *controller) reconcileServiceBinding(binding *v1beta1.ServiceBinding) er
774
774
`%s "%s/%s": Orphan mitigation successful` ,
775
775
typeSB , binding .Namespace , binding .Name ,
776
776
)
777
- c . setServiceBindingCondition (toUpdate ,
777
+ setServiceBindingCondition (toUpdate ,
778
778
v1beta1 .ServiceBindingConditionReady ,
779
779
v1beta1 .ConditionFalse ,
780
780
successOrphanMitigationReason ,
781
781
s )
782
782
} else {
783
783
s := "The binding was deleted successfully"
784
- c . setServiceBindingCondition (
784
+ setServiceBindingCondition (
785
785
toUpdate ,
786
786
v1beta1 .ServiceBindingConditionReady ,
787
787
v1beta1 .ConditionFalse ,
@@ -913,7 +913,7 @@ func (c *controller) ejectServiceBinding(binding *v1beta1.ServiceBinding) error
913
913
//
914
914
// Note: objects coming from informers should never be mutated; always pass a
915
915
// deep copy as the binding parameter.
916
- func ( c * controller ) setServiceBindingCondition (toUpdate * v1beta1.ServiceBinding ,
916
+ func setServiceBindingCondition (toUpdate * v1beta1.ServiceBinding ,
917
917
conditionType v1beta1.ServiceBindingConditionType ,
918
918
status v1beta1.ConditionStatus ,
919
919
reason , message string ) {
@@ -1005,7 +1005,7 @@ func (c *controller) updateServiceBindingCondition(
1005
1005
return err
1006
1006
}
1007
1007
1008
- c . setServiceBindingCondition (toUpdate , conditionType , status , reason , message )
1008
+ setServiceBindingCondition (toUpdate , conditionType , status , reason , message )
1009
1009
1010
1010
glog .V (4 ).Infof (
1011
1011
`%s "%s/%s": Updating %v condition to %v (Reason: %q, Message: %q)` ,
@@ -1056,7 +1056,7 @@ func (c *controller) recordStartOfServiceBindingOperation(toUpdate *v1beta1.Serv
1056
1056
reason = unbindingInFlightReason
1057
1057
message = unbindingInFlightMessage
1058
1058
}
1059
- c . setServiceBindingCondition (
1059
+ setServiceBindingCondition (
1060
1060
toUpdate ,
1061
1061
v1beta1 .ServiceBindingConditionReady ,
1062
1062
v1beta1 .ConditionFalse ,
0 commit comments