File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
pkg/controller/operators/olm Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import (
28
28
"k8s.io/apimachinery/pkg/util/intstr"
29
29
"k8s.io/client-go/informers"
30
30
k8sfake "k8s.io/client-go/kubernetes/fake"
31
+ "k8s.io/client-go/pkg/version"
31
32
"k8s.io/client-go/tools/cache"
32
33
"k8s.io/client-go/util/workqueue"
33
34
apiregistrationv1 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1"
@@ -2473,6 +2474,7 @@ func TestSyncOperatorGroups(t *testing.T) {
2473
2474
v1alpha1 .CSVPhaseNone ,
2474
2475
)
2475
2476
2477
+ serverVersion := version .Get ().String ()
2476
2478
// after state transitions from operatorgroups, this is the operator csv we expect
2477
2479
operatorCSVFinal := operatorCSV .DeepCopy ()
2478
2480
operatorCSVFinal .Status .Phase = v1alpha1 .CSVPhaseSucceeded
@@ -2487,7 +2489,7 @@ func TestSyncOperatorGroups(t *testing.T) {
2487
2489
Kind : "ClusterServiceVersion" ,
2488
2490
Name : "csv1" ,
2489
2491
Status : v1alpha1 .RequirementStatusReasonPresent ,
2490
- Message : "CSV minKubeVersion (0.0.0) less than server version (v0.0.0-master+$Format:%h$ )" ,
2492
+ Message : "CSV minKubeVersion (0.0.0) less than server version (" + serverVersion + " )" ,
2491
2493
},
2492
2494
{
2493
2495
Group : "apiextensions.k8s.io" ,
You can’t perform that action at this time.
0 commit comments