Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
291647e6
Commit
291647e6
authored
Oct 31, 2017
by
xiangpengzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use "kubeproxy.config.k8s.io" as final group name.
parent
ff36eefd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
server_test.go
cmd/kube-proxy/app/server_test.go
+2
-2
register.go
pkg/proxy/apis/kubeproxyconfig/register.go
+1
-1
register.go
pkg/proxy/apis/kubeproxyconfig/v1alpha1/register.go
+1
-1
No files found.
cmd/kube-proxy/app/server_test.go
View file @
291647e6
...
@@ -223,7 +223,7 @@ func TestGetConntrackMax(t *testing.T) {
...
@@ -223,7 +223,7 @@ func TestGetConntrackMax(t *testing.T) {
// TestLoadConfig tests proper operation of loadConfig()
// TestLoadConfig tests proper operation of loadConfig()
func
TestLoadConfig
(
t
*
testing
.
T
)
{
func
TestLoadConfig
(
t
*
testing
.
T
)
{
yamlTemplate
:=
`apiVersion: kubeproxyconfig.k8s.io/v1alpha1
yamlTemplate
:=
`apiVersion: kubeproxy
.
config.k8s.io/v1alpha1
bindAddress: %s
bindAddress: %s
clientConnection:
clientConnection:
acceptContentTypes: "abc"
acceptContentTypes: "abc"
...
@@ -407,7 +407,7 @@ func TestLoadConfigFailures(t *testing.T) {
...
@@ -407,7 +407,7 @@ func TestLoadConfigFailures(t *testing.T) {
expErr
:
"mapping values are not allowed in this context"
,
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
{
for
_
,
tc
:=
range
testCases
{
options
:=
NewOptions
()
options
:=
NewOptions
()
config
:=
fmt
.
Sprintf
(
"%s
\n
%s"
,
version
,
tc
.
config
)
config
:=
fmt
.
Sprintf
(
"%s
\n
%s"
,
version
,
tc
.
config
)
...
...
pkg/proxy/apis/kubeproxyconfig/register.go
View file @
291647e6
...
@@ -27,7 +27,7 @@ var (
...
@@ -27,7 +27,7 @@ var (
)
)
// GroupName is the group name use in this package
// 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
// SchemeGroupVersion is group version used to register these objects
var
SchemeGroupVersion
=
schema
.
GroupVersion
{
Group
:
GroupName
,
Version
:
runtime
.
APIVersionInternal
}
var
SchemeGroupVersion
=
schema
.
GroupVersion
{
Group
:
GroupName
,
Version
:
runtime
.
APIVersionInternal
}
...
...
pkg/proxy/apis/kubeproxyconfig/v1alpha1/register.go
View file @
291647e6
...
@@ -22,7 +22,7 @@ import (
...
@@ -22,7 +22,7 @@ import (
)
)
// GroupName is the group name use in this package
// 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
// SchemeGroupVersion is group version used to register these objects
var
SchemeGroupVersion
=
schema
.
GroupVersion
{
Group
:
GroupName
,
Version
:
"v1alpha1"
}
var
SchemeGroupVersion
=
schema
.
GroupVersion
{
Group
:
GroupName
,
Version
:
"v1alpha1"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment