@@ -47,7 +47,7 @@ var _ = Describe("CatalogSource Grpc Pod Config", func() {
47
47
BeforeEach (func () {
48
48
client = ctx .Ctx ().Client ()
49
49
50
- // must be a grpc source type with spec.image defined
50
+ By ( " must be a grpc source type with spec.image defined" )
51
51
catalogSource = & v1alpha1.CatalogSource {
52
52
ObjectMeta : metav1.ObjectMeta {
53
53
Name : catalogSourceName ,
@@ -64,10 +64,10 @@ var _ = Describe("CatalogSource Grpc Pod Config", func() {
64
64
})
65
65
66
66
AfterEach (func () {
67
- // assume the catalog source was created and just delete it
67
+ By ( " assume the catalog source was created and just delete it" )
68
68
_ = client .Delete (context .TODO (), catalogSource )
69
69
70
- // wait for it to go away
70
+ By ( " wait for it to go away" )
71
71
Expect (waitForDelete (func () error {
72
72
return client .Get (context .TODO (), k8scontrollerclient.ObjectKey {
73
73
Name : catalogSource .GetName (),
@@ -79,14 +79,14 @@ var _ = Describe("CatalogSource Grpc Pod Config", func() {
79
79
It ("should override the pod's spec.priorityClassName" , func () {
80
80
var overridenPriorityClassName = "system-node-critical"
81
81
82
- // create catalog source
82
+ By ( " create catalog source" )
83
83
catalogSource .Spec .GrpcPodConfig = & v1alpha1.GrpcPodConfig {
84
84
PriorityClassName : & overridenPriorityClassName ,
85
85
SecurityContextConfig : v1alpha1 .Restricted ,
86
86
}
87
87
mustCreateCatalogSource (client , catalogSource )
88
88
89
- // Check overrides are present in the spec
89
+ By ( " Check overrides are present in the spec" )
90
90
catalogSourcePod := mustGetCatalogSourcePod (client , catalogSource )
91
91
Expect (catalogSourcePod ).ToNot (BeNil ())
92
92
Expect (catalogSourcePod .Spec .NodeSelector ).To (BeEquivalentTo (defaultNodeSelector ))
@@ -97,14 +97,14 @@ var _ = Describe("CatalogSource Grpc Pod Config", func() {
97
97
It ("should override the pod's spec.priorityClassName when it is empty" , func () {
98
98
var overridenPriorityClassName = ""
99
99
100
- // create catalog source
100
+ By ( " create catalog source" )
101
101
catalogSource .Spec .GrpcPodConfig = & v1alpha1.GrpcPodConfig {
102
102
PriorityClassName : & overridenPriorityClassName ,
103
103
SecurityContextConfig : v1alpha1 .Restricted ,
104
104
}
105
105
mustCreateCatalogSource (client , catalogSource )
106
106
107
- // Check overrides are present in the spec
107
+ By ( " Check overrides are present in the spec" )
108
108
catalogSourcePod := mustGetCatalogSourcePod (client , catalogSource )
109
109
Expect (catalogSourcePod ).ToNot (BeNil ())
110
110
Expect (catalogSourcePod .Spec .NodeSelector ).To (BeEquivalentTo (defaultNodeSelector ))
@@ -118,14 +118,14 @@ var _ = Describe("CatalogSource Grpc Pod Config", func() {
118
118
"some" : "tag" ,
119
119
}
120
120
121
- // create catalog source
121
+ By ( " create catalog source" )
122
122
catalogSource .Spec .GrpcPodConfig = & v1alpha1.GrpcPodConfig {
123
123
NodeSelector : overridenNodeSelector ,
124
124
SecurityContextConfig : v1alpha1 .Restricted ,
125
125
}
126
126
mustCreateCatalogSource (client , catalogSource )
127
127
128
- // Check overrides are present in the spec
128
+ By ( " Check overrides are present in the spec" )
129
129
catalogSourcePod := mustGetCatalogSourcePod (client , catalogSource )
130
130
Expect (catalogSourcePod ).ToNot (BeNil ())
131
131
Expect (catalogSourcePod .Spec .NodeSelector ).To (BeEquivalentTo (overridenNodeSelector ))
@@ -149,14 +149,14 @@ var _ = Describe("CatalogSource Grpc Pod Config", func() {
149
149
},
150
150
}
151
151
152
- // create catalog source
152
+ By ( " create catalog source" )
153
153
catalogSource .Spec .GrpcPodConfig = & v1alpha1.GrpcPodConfig {
154
154
Tolerations : overriddenTolerations ,
155
155
SecurityContextConfig : v1alpha1 .Restricted ,
156
156
}
157
157
mustCreateCatalogSource (client , catalogSource )
158
158
159
- // Check overrides are present in the spec
159
+ By ( " Check overrides are present in the spec" )
160
160
catalogSourcePod := mustGetCatalogSourcePod (client , catalogSource )
161
161
Expect (catalogSourcePod ).ToNot (BeNil ())
162
162
Expect (catalogSourcePod .Spec .NodeSelector ).To (BeEquivalentTo (defaultNodeSelector ))
0 commit comments