@@ -163,7 +163,7 @@ var _ = Describe("RabbitmqCluster", func() {
163163 Image : "rabbitmq-image-from-cr" ,
164164 ImagePullSecret : "my-super-secret" ,
165165 Service : RabbitmqClusterServiceSpec {
166- Type : corev1 . ServiceType ( "this-is-a-service" ) ,
166+ Type : "this-is-a-service" ,
167167 Annotations : map [string ]string {
168168 "myannotation" : "is-set" ,
169169 },
@@ -186,7 +186,7 @@ var _ = Describe("RabbitmqCluster", func() {
186186 NodeAffinity : & corev1.NodeAffinity {
187187 RequiredDuringSchedulingIgnoredDuringExecution : & corev1.NodeSelector {
188188 NodeSelectorTerms : []corev1.NodeSelectorTerm {
189- corev1. NodeSelectorTerm {
189+ {
190190 MatchExpressions : []corev1.NodeSelectorRequirement {
191191 {
192192 Key : "somekey" ,
@@ -201,7 +201,7 @@ var _ = Describe("RabbitmqCluster", func() {
201201 },
202202 },
203203 Tolerations : []corev1.Toleration {
204- corev1. Toleration {
204+ {
205205 Key : "mykey" ,
206206 Operator : "NotEqual" ,
207207 Value : "myvalue" ,
@@ -325,15 +325,15 @@ var _ = Describe("RabbitmqCluster", func() {
325325
326326 It ("updates an arbitrary condition" , func () {
327327 someCondition := status.RabbitmqClusterCondition {}
328- someCondition .Type = status . RabbitmqClusterConditionType ( "a-type" )
328+ someCondition .Type = "a-type"
329329 someCondition .Reason = "whynot"
330- someCondition .Status = corev1 . ConditionStatus ( "perhaps" )
330+ someCondition .Status = "perhaps"
331331 someCondition .LastTransitionTime = metav1 .Unix (10 , 0 )
332332 rmqStatus := RabbitmqClusterStatus {
333333 Conditions : []status.RabbitmqClusterCondition {someCondition },
334334 }
335335
336- rmqStatus .SetCondition (status . RabbitmqClusterConditionType ( "a-type" ) ,
336+ rmqStatus .SetCondition ("a-type" ,
337337 corev1 .ConditionTrue , "some-reason" , "my-message" )
338338
339339 updatedCondition := rmqStatus .Conditions [0 ]
0 commit comments