Skip to content

Commit

Permalink
Disable exhaustive linter on updateScaleSubResourceStatus 'switch mode'
Browse files Browse the repository at this point in the history
  • Loading branch information
secat committed Mar 17, 2022
1 parent 92b01c7 commit 2d18b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/collector/reconcile/opentelemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func updateScaleSubResourceStatus(ctx context.Context, cli client.Client, change
}

var replicas int32
switch mode {
switch mode { // nolint:exhaustive
case v1alpha1.ModeDeployment:
obj := &appsv1.Deployment{}
if err := cli.Get(ctx, objKey, obj); err != nil {
Expand Down

0 comments on commit 2d18b7b

Please sign in to comment.