Skip to content

Commit e46f176

Browse files
committed
Make sure Builder implements BuilderInterface
1 parent 7fa7757 commit e46f176

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/store/builder.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ import (
5151
"k8s.io/kube-state-metrics/v2/pkg/watch"
5252
)
5353

54+
// Make sure the internal Builder implements the public BuilderInterface.
55+
// New Builder methods should be added to the public BuilderInterface.
56+
var _ ksmtypes.BuilderInterface = &Builder{}
57+
5458
// Builder helps to build store. It follows the builder pattern
5559
// (https://en.wikipedia.org/wiki/Builder_pattern).
5660
type Builder struct {

0 commit comments

Comments
 (0)