Skip to content

Commit

Permalink
Remove the now unused manifestsSaver
Browse files Browse the repository at this point in the history
Its functionality has been inlined into the components.

Signed-off-by: Tom Wieczorek <[email protected]>
  • Loading branch information
twz123 committed Oct 31, 2024
1 parent a3465ff commit ad3fd24
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 70 deletions.
4 changes: 0 additions & 4 deletions pkg/component/controller/calico.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ const (
calicoModeVXLAN calicoMode = "vxlan"
)

type manifestsSaver interface {
Save(dst string, content []byte) error
}

type calicoConfig struct {
MTU int
Mode calicoMode
Expand Down
7 changes: 0 additions & 7 deletions pkg/component/controller/calico_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ import (
"sigs.k8s.io/yaml"
)

type inMemorySaver map[string][]byte

func (i inMemorySaver) Save(dst string, content []byte) error {
i[dst] = content
return nil
}

func TestCalicoManifests(t *testing.T) {
newTestInstance := func(t *testing.T) *Calico {
k0sVars, err := config.NewCfgVars(nil, t.TempDir())
Expand Down
59 changes: 0 additions & 59 deletions pkg/component/controller/manifests.go

This file was deleted.

0 comments on commit ad3fd24

Please sign in to comment.