mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Move flag into sub pkg
This commit is contained in:
@@ -38,7 +38,7 @@ import (
|
||||
"k8s.io/kubernetes/pkg/client/unversioned/fake"
|
||||
"k8s.io/kubernetes/pkg/kubectl"
|
||||
"k8s.io/kubernetes/pkg/runtime"
|
||||
"k8s.io/kubernetes/pkg/util"
|
||||
"k8s.io/kubernetes/pkg/util/flag"
|
||||
)
|
||||
|
||||
func TestNewFactoryDefaultFlagBindings(t *testing.T) {
|
||||
@@ -198,7 +198,7 @@ func TestCanBeExposed(t *testing.T) {
|
||||
func TestFlagUnderscoreRenaming(t *testing.T) {
|
||||
factory := NewFactory(nil)
|
||||
|
||||
factory.flags.SetNormalizeFunc(util.WordSepNormalizeFunc)
|
||||
factory.flags.SetNormalizeFunc(flag.WordSepNormalizeFunc)
|
||||
factory.flags.Bool("valid_flag", false, "bool value")
|
||||
|
||||
// In case of failure of this test check this PR: spf13/pflag#23
|
||||
|
||||
Reference in New Issue
Block a user