@@ -179,8 +179,8 @@ var _ = Describe("Reconciler", func() {
179
179
a2 := annotation.InstallDisableHooks {CustomName : "my.domain/custom-name2" }
180
180
Expect (WithInstallAnnotations (a1 , a2 )(r )).To (Succeed ())
181
181
Expect (r .annotations ).To (Equal (map [string ]struct {}{
182
- "my.domain/custom-name1" : struct {} {},
183
- "my.domain/custom-name2" : struct {} {},
182
+ "my.domain/custom-name1" : {},
183
+ "my.domain/custom-name2" : {},
184
184
}))
185
185
Expect (r .installAnnotations ).To (Equal (map [string ]annotation.Install {
186
186
"my.domain/custom-name1" : a1 ,
@@ -192,7 +192,7 @@ var _ = Describe("Reconciler", func() {
192
192
a2 := annotation.InstallDisableHooks {CustomName : "my.domain/custom-name1" }
193
193
Expect (WithInstallAnnotations (a1 , a2 )(r )).NotTo (Succeed ())
194
194
Expect (r .annotations ).To (Equal (map [string ]struct {}{
195
- "my.domain/custom-name1" : struct {} {},
195
+ "my.domain/custom-name1" : {},
196
196
}))
197
197
Expect (r .installAnnotations ).To (Equal (map [string ]annotation.Install {
198
198
"my.domain/custom-name1" : a1 ,
@@ -204,7 +204,7 @@ var _ = Describe("Reconciler", func() {
204
204
Expect (WithInstallAnnotations (a1 )(r )).To (Succeed ())
205
205
Expect (WithUpgradeAnnotations (a2 )(r )).To (HaveOccurred ())
206
206
Expect (r .annotations ).To (Equal (map [string ]struct {}{
207
- "my.domain/custom-name1" : struct {} {},
207
+ "my.domain/custom-name1" : {},
208
208
}))
209
209
Expect (r .installAnnotations ).To (Equal (map [string ]annotation.Install {
210
210
"my.domain/custom-name1" : a1 ,
@@ -216,7 +216,7 @@ var _ = Describe("Reconciler", func() {
216
216
Expect (WithInstallAnnotations (a1 )(r )).To (Succeed ())
217
217
Expect (WithUninstallAnnotations (a2 )(r )).To (HaveOccurred ())
218
218
Expect (r .annotations ).To (Equal (map [string ]struct {}{
219
- "my.domain/custom-name1" : struct {} {},
219
+ "my.domain/custom-name1" : {},
220
220
}))
221
221
Expect (r .installAnnotations ).To (Equal (map [string ]annotation.Install {
222
222
"my.domain/custom-name1" : a1 ,
@@ -229,8 +229,8 @@ var _ = Describe("Reconciler", func() {
229
229
a2 := annotation.UpgradeDisableHooks {CustomName : "my.domain/custom-name2" }
230
230
Expect (WithUpgradeAnnotations (a1 , a2 )(r )).To (Succeed ())
231
231
Expect (r .annotations ).To (Equal (map [string ]struct {}{
232
- "my.domain/custom-name1" : struct {} {},
233
- "my.domain/custom-name2" : struct {} {},
232
+ "my.domain/custom-name1" : {},
233
+ "my.domain/custom-name2" : {},
234
234
}))
235
235
Expect (r .upgradeAnnotations ).To (Equal (map [string ]annotation.Upgrade {
236
236
"my.domain/custom-name1" : a1 ,
@@ -243,7 +243,7 @@ var _ = Describe("Reconciler", func() {
243
243
Expect (WithUpgradeAnnotations (a1 )(r )).To (Succeed ())
244
244
Expect (WithInstallAnnotations (a2 )(r )).To (HaveOccurred ())
245
245
Expect (r .annotations ).To (Equal (map [string ]struct {}{
246
- "my.domain/custom-name1" : struct {} {},
246
+ "my.domain/custom-name1" : {},
247
247
}))
248
248
Expect (r .upgradeAnnotations ).To (Equal (map [string ]annotation.Upgrade {
249
249
"my.domain/custom-name1" : a1 ,
@@ -254,7 +254,7 @@ var _ = Describe("Reconciler", func() {
254
254
a2 := annotation.UpgradeDisableHooks {CustomName : "my.domain/custom-name1" }
255
255
Expect (WithUpgradeAnnotations (a1 , a2 )(r )).NotTo (Succeed ())
256
256
Expect (r .annotations ).To (Equal (map [string ]struct {}{
257
- "my.domain/custom-name1" : struct {} {},
257
+ "my.domain/custom-name1" : {},
258
258
}))
259
259
Expect (r .upgradeAnnotations ).To (Equal (map [string ]annotation.Upgrade {
260
260
"my.domain/custom-name1" : a1 ,
@@ -266,7 +266,7 @@ var _ = Describe("Reconciler", func() {
266
266
Expect (WithUpgradeAnnotations (a1 )(r )).To (Succeed ())
267
267
Expect (WithUninstallAnnotations (a2 )(r )).To (HaveOccurred ())
268
268
Expect (r .annotations ).To (Equal (map [string ]struct {}{
269
- "my.domain/custom-name1" : struct {} {},
269
+ "my.domain/custom-name1" : {},
270
270
}))
271
271
Expect (r .upgradeAnnotations ).To (Equal (map [string ]annotation.Upgrade {
272
272
"my.domain/custom-name1" : a1 ,
@@ -279,8 +279,8 @@ var _ = Describe("Reconciler", func() {
279
279
a2 := annotation.UninstallDisableHooks {CustomName : "my.domain/custom-name2" }
280
280
Expect (WithUninstallAnnotations (a1 , a2 )(r )).To (Succeed ())
281
281
Expect (r .annotations ).To (Equal (map [string ]struct {}{
282
- "my.domain/custom-name1" : struct {} {},
283
- "my.domain/custom-name2" : struct {} {},
282
+ "my.domain/custom-name1" : {},
283
+ "my.domain/custom-name2" : {},
284
284
}))
285
285
Expect (r .uninstallAnnotations ).To (Equal (map [string ]annotation.Uninstall {
286
286
"my.domain/custom-name1" : a1 ,
@@ -293,7 +293,7 @@ var _ = Describe("Reconciler", func() {
293
293
Expect (WithUninstallAnnotations (a1 )(r )).To (Succeed ())
294
294
Expect (WithInstallAnnotations (a2 )(r )).To (HaveOccurred ())
295
295
Expect (r .annotations ).To (Equal (map [string ]struct {}{
296
- "my.domain/custom-name1" : struct {} {},
296
+ "my.domain/custom-name1" : {},
297
297
}))
298
298
Expect (r .uninstallAnnotations ).To (Equal (map [string ]annotation.Uninstall {
299
299
"my.domain/custom-name1" : a1 ,
@@ -305,7 +305,7 @@ var _ = Describe("Reconciler", func() {
305
305
Expect (WithUninstallAnnotations (a1 )(r )).To (Succeed ())
306
306
Expect (WithUpgradeAnnotations (a2 )(r )).To (HaveOccurred ())
307
307
Expect (r .annotations ).To (Equal (map [string ]struct {}{
308
- "my.domain/custom-name1" : struct {} {},
308
+ "my.domain/custom-name1" : {},
309
309
}))
310
310
Expect (r .uninstallAnnotations ).To (Equal (map [string ]annotation.Uninstall {
311
311
"my.domain/custom-name1" : a1 ,
@@ -316,7 +316,7 @@ var _ = Describe("Reconciler", func() {
316
316
a2 := annotation.UninstallDisableHooks {CustomName : "my.domain/custom-name1" }
317
317
Expect (WithUninstallAnnotations (a1 , a2 )(r )).NotTo (Succeed ())
318
318
Expect (r .annotations ).To (Equal (map [string ]struct {}{
319
- "my.domain/custom-name1" : struct {} {},
319
+ "my.domain/custom-name1" : {},
320
320
}))
321
321
Expect (r .uninstallAnnotations ).To (Equal (map [string ]annotation.Uninstall {
322
322
"my.domain/custom-name1" : a1 ,
0 commit comments