diff --git a/cmd/kube-proxy/app/server_test.go b/cmd/kube-proxy/app/server_test.go index af5651f56b3..50adf83fa60 100644 --- a/cmd/kube-proxy/app/server_test.go +++ b/cmd/kube-proxy/app/server_test.go @@ -223,7 +223,7 @@ func TestGetConntrackMax(t *testing.T) { // TestLoadConfig tests proper operation of loadConfig() func TestLoadConfig(t *testing.T) { - yamlTemplate := `apiVersion: kubeproxyconfig.k8s.io/v1alpha1 + yamlTemplate := `apiVersion: kubeproxy.config.k8s.io/v1alpha1 bindAddress: %s clientConnection: acceptContentTypes: "abc" @@ -407,7 +407,7 @@ func TestLoadConfigFailures(t *testing.T) { expErr: "mapping values are not allowed in this context", }, } - version := "apiVersion: kubeproxyconfig.k8s.io/v1alpha1" + version := "apiVersion: kubeproxy.config.k8s.io/v1alpha1" for _, tc := range testCases { options := NewOptions() config := fmt.Sprintf("%s\n%s", version, tc.config) diff --git a/pkg/proxy/apis/kubeproxyconfig/register.go b/pkg/proxy/apis/kubeproxyconfig/register.go index 36a01578d20..d543b07a4d4 100644 --- a/pkg/proxy/apis/kubeproxyconfig/register.go +++ b/pkg/proxy/apis/kubeproxyconfig/register.go @@ -27,7 +27,7 @@ var ( ) // GroupName is the group name use in this package -const GroupName = "kubeproxyconfig.k8s.io" +const GroupName = "kubeproxy.config.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} diff --git a/pkg/proxy/apis/kubeproxyconfig/v1alpha1/register.go b/pkg/proxy/apis/kubeproxyconfig/v1alpha1/register.go index 1cc891204a8..0c387fbc2e1 100644 --- a/pkg/proxy/apis/kubeproxyconfig/v1alpha1/register.go +++ b/pkg/proxy/apis/kubeproxyconfig/v1alpha1/register.go @@ -22,7 +22,7 @@ import ( ) // GroupName is the group name use in this package -const GroupName = "kubeproxyconfig.k8s.io" +const GroupName = "kubeproxy.config.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}