Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chandanpasunoori committed Jan 22, 2024
1 parent 7a852ec commit 454a8d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ds_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (b *dsBuilder) Create(ctx context.Context, cs kubernetes.Interface) (DS, er
}
}
if len(b.regex) != 0 {
regexFilter, err := NameRegexFileter(b.regex)
regexFilter, err := NewNameRegexFilter(b.regex)
if err != nil {
ds.closeAll()
return nil, log.Err(err, "regex filter")
Expand Down
4 changes: 2 additions & 2 deletions filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/boz/kcache/filter"
"github.com/boz/kcache/nsname"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand Down Expand Up @@ -75,7 +75,7 @@ func SourcesForPod(
return id, sources
}

func NameRegexFileter(regex string) (filter.Filter, error) {
func NewNameRegexFilter(regex string) (filter.Filter, error) {
compile, err := regexp.Compile(regex)
if err != nil {
return nil, err
Expand Down

0 comments on commit 454a8d2

Please sign in to comment.