Skip to content

Commit

Permalink
fix duplicate custom resources
Browse files Browse the repository at this point in the history
  • Loading branch information
murphd40 committed May 14, 2023
1 parent 3b95dd1 commit 74c3477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func RunKubeStateMetrics(ctx context.Context, opts *options.Options) error {
// enable custom resource only
klog.InfoS("Used CRD resources only", "resources", resources)
default:
resources = append(resources, opts.Resources.AsSlice()...)
resources = opts.Resources.AsSlice()
klog.InfoS("Used resources", "resources", resources)
}

Expand Down

0 comments on commit 74c3477

Please sign in to comment.