Skip to content

Commit

Permalink
set f.fsys in load()
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-garrison committed Dec 14, 2023
1 parent aa0d9d1 commit 27c54f9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/feature/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ type partialBuilder func(f *Feature) error
type featureBuilder struct {
name string
builders []partialBuilder
fsys fs.FS
}

func CreateFeature(name string) *featureBuilder {
Expand Down Expand Up @@ -77,11 +76,6 @@ func createClients(config *rest.Config) partialBuilder {
}

func (fb *featureBuilder) Manifests(paths ...string) *featureBuilder {
fsys := fb.fsys
if fsys == nil {
fsys = embeddedFiles
}

fb.builders = append(fb.builders, func(f *Feature) error {
var err error
var manifests []manifest
Expand Down Expand Up @@ -164,6 +158,7 @@ func (fb *featureBuilder) Load() (*Feature, error) {
feature := &Feature{
Name: fb.name,
Enabled: true,
fsys: embeddedFiles,
}

for i := range fb.builders {
Expand Down

0 comments on commit 27c54f9

Please sign in to comment.