Skip to content

Commit

Permalink
Merge pull request #4333 from twz123/remove-config-getter
Browse files Browse the repository at this point in the history
Remove testutil.ConfigGetter
  • Loading branch information
twz123 authored Apr 24, 2024
2 parents 0cf6ff0 + 2b584be commit 82f11db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 90 deletions.
13 changes: 3 additions & 10 deletions cmd/kubeconfig/kubeconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"path/filepath"
"testing"

"github.com/k0sproject/k0s/internal/testutil"
"github.com/k0sproject/k0s/pkg/apis/k0s/v1beta1"
"github.com/k0sproject/k0s/pkg/certificate"
"github.com/k0sproject/k0s/pkg/config"

Expand All @@ -40,15 +40,8 @@ type CLITestSuite struct {
}

func (s *CLITestSuite) TestKubeConfigCreate() {
yamlData := `
apiVersion: k0s.k0sproject.io/v1beta1
kind: ClusterConfig
spec:
api:
externalAddress: 10.0.0.86
`
configGetter := testutil.NewConfigGetter(s.T(), yamlData, false, config.DefaultCfgVars())
cfg := configGetter.FakeConfigFromFile()
cfg := v1beta1.DefaultClusterConfig()
cfg.Spec.API.ExternalAddress = "10.0.0.86"

caCert := `
-----BEGIN CERTIFICATE-----
Expand Down
80 changes: 0 additions & 80 deletions internal/testutil/runtime_config.go

This file was deleted.

0 comments on commit 82f11db

Please sign in to comment.