@@ -160,7 +160,7 @@ func (p *K8sAnnotator) processInput(input io.Reader, out io.Writer, opts Annotat
160
160
if err != nil {
161
161
return err
162
162
}
163
- items = append (items , runtime.RawExtension {Raw : annotatedJSON }) // nolint:exhaustivestruct
163
+ items = append (items , runtime.RawExtension {Raw : annotatedJSON }) //nolint:exhaustivestruct
164
164
}
165
165
sourceList .Items = items
166
166
result , err = yaml .Marshal (sourceList )
@@ -235,7 +235,7 @@ func (p *K8sAnnotator) annotateYAML(input []byte, config AnnotateOptions) ([]byt
235
235
kind := strings .ToLower (metaType .Kind )
236
236
switch kind {
237
237
case pod :
238
- pod := & corev1.Pod {} // nolint:exhaustivestruct
238
+ pod := & corev1.Pod {} //nolint:exhaustivestruct
239
239
if err := yaml .Unmarshal (input , pod ); err != nil {
240
240
return nil , false , err
241
241
}
@@ -244,7 +244,7 @@ func (p *K8sAnnotator) annotateYAML(input []byte, config AnnotateOptions) ([]byt
244
244
path = podAnnotationsPath
245
245
ns = getNamespaceOrDefault (pod )
246
246
case cronjob :
247
- cronjob := & batchv1beta1.CronJob {} // nolint:exhaustivestruct
247
+ cronjob := & batchv1beta1.CronJob {} //nolint:exhaustivestruct
248
248
if err := yaml .Unmarshal (input , cronjob ); err != nil {
249
249
return nil , false , err
250
250
}
@@ -253,7 +253,7 @@ func (p *K8sAnnotator) annotateYAML(input []byte, config AnnotateOptions) ([]byt
253
253
path = cronjobAnnotationsPath
254
254
ns = getNamespaceOrDefault (cronjob )
255
255
case deployment :
256
- deployment := & appsv1.Deployment {} // nolint:exhaustivestruct
256
+ deployment := & appsv1.Deployment {} //nolint:exhaustivestruct
257
257
if err := yaml .Unmarshal (input , deployment ); err != nil {
258
258
return nil , false , err
259
259
}
@@ -262,7 +262,7 @@ func (p *K8sAnnotator) annotateYAML(input []byte, config AnnotateOptions) ([]byt
262
262
path = templateAnnotationsPath
263
263
ns = getNamespaceOrDefault (deployment )
264
264
case replicaset :
265
- replicaset := & appsv1.ReplicaSet {} // nolint:exhaustivestruct
265
+ replicaset := & appsv1.ReplicaSet {} //nolint:exhaustivestruct
266
266
if err := yaml .Unmarshal (input , replicaset ); err != nil {
267
267
return nil , false , err
268
268
}
@@ -271,7 +271,7 @@ func (p *K8sAnnotator) annotateYAML(input []byte, config AnnotateOptions) ([]byt
271
271
path = templateAnnotationsPath
272
272
ns = getNamespaceOrDefault (replicaset )
273
273
case job :
274
- job := & batchv1.Job {} // nolint:exhaustivestruct
274
+ job := & batchv1.Job {} //nolint:exhaustivestruct
275
275
if err := yaml .Unmarshal (input , job ); err != nil {
276
276
return nil , false , err
277
277
}
@@ -280,7 +280,7 @@ func (p *K8sAnnotator) annotateYAML(input []byte, config AnnotateOptions) ([]byt
280
280
path = templateAnnotationsPath
281
281
ns = getNamespaceOrDefault (job )
282
282
case statefulset :
283
- statefulset := & appsv1.StatefulSet {} // nolint:exhaustivestruct
283
+ statefulset := & appsv1.StatefulSet {} //nolint:exhaustivestruct
284
284
if err := yaml .Unmarshal (input , statefulset ); err != nil {
285
285
return nil , false , err
286
286
}
@@ -289,7 +289,7 @@ func (p *K8sAnnotator) annotateYAML(input []byte, config AnnotateOptions) ([]byt
289
289
path = templateAnnotationsPath
290
290
ns = getNamespaceOrDefault (statefulset )
291
291
case daemonset :
292
- daemonset := & appsv1.DaemonSet {} // nolint:exhaustivestruct
292
+ daemonset := & appsv1.DaemonSet {} //nolint:exhaustivestruct
293
293
if err := yaml .Unmarshal (input , daemonset ); err != nil {
294
294
return nil , false , err
295
295
}
0 commit comments