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
75b9fb28
Commit
75b9fb28
authored
Oct 10, 2017
by
xiangpengzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto generated files
parent
5c8c1f43
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
594 additions
and
298 deletions
+594
-298
BUILD
cmd/kube-proxy/app/BUILD
+6
-12
.golint_failures
hack/.golint_failures
+2
-0
BUILD
pkg/apis/componentconfig/v1alpha1/BUILD
+0
-1
zz_generated.conversion.go
pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go
+0
-0
zz_generated.deepcopy.go
pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go
+0
-140
zz_generated.defaults.go
pkg/apis/componentconfig/v1alpha1/zz_generated.defaults.go
+0
-5
zz_generated.deepcopy.go
pkg/apis/componentconfig/zz_generated.deepcopy.go
+0
-140
BUILD
pkg/generated/openapi/BUILD
+1
-0
BUILD
pkg/proxy/BUILD
+1
-0
BUILD
pkg/proxy/apis/BUILD
+30
-0
BUILD
pkg/proxy/apis/proxyconfig/BUILD
+41
-0
BUILD
pkg/proxy/apis/proxyconfig/scheme/BUILD
+30
-0
BUILD
pkg/proxy/apis/proxyconfig/v1alpha1/BUILD
+42
-0
zz_generated.conversion.go
...roxy/apis/proxyconfig/v1alpha1/zz_generated.conversion.go
+0
-0
zz_generated.deepcopy.go
pkg/proxy/apis/proxyconfig/v1alpha1/zz_generated.deepcopy.go
+180
-0
zz_generated.defaults.go
pkg/proxy/apis/proxyconfig/v1alpha1/zz_generated.defaults.go
+37
-0
BUILD
pkg/proxy/apis/proxyconfig/validation/BUILD
+44
-0
zz_generated.deepcopy.go
pkg/proxy/apis/proxyconfig/zz_generated.deepcopy.go
+180
-0
No files found.
cmd/kube-proxy/app/BUILD
View file @
75b9fb28
...
@@ -12,7 +12,6 @@ go_library(
...
@@ -12,7 +12,6 @@ go_library(
"conntrack.go",
"conntrack.go",
"server.go",
"server.go",
"server_others.go",
"server_others.go",
"validation.go",
] + select({
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:windows_amd64": [
"server_windows.go",
"server_windows.go",
...
@@ -22,9 +21,7 @@ go_library(
...
@@ -22,9 +21,7 @@ go_library(
importpath = "k8s.io/kubernetes/cmd/kube-proxy/app",
importpath = "k8s.io/kubernetes/cmd/kube-proxy/app",
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/validation:go_default_library",
"//pkg/apis/componentconfig:go_default_library",
"//pkg/apis/componentconfig:go_default_library",
"//pkg/apis/componentconfig/v1alpha1:go_default_library",
"//pkg/client/clientset_generated/internalclientset:go_default_library",
"//pkg/client/clientset_generated/internalclientset:go_default_library",
"//pkg/client/informers/informers_generated/internalversion:go_default_library",
"//pkg/client/informers/informers_generated/internalversion:go_default_library",
"//pkg/features:go_default_library",
"//pkg/features:go_default_library",
...
@@ -32,6 +29,10 @@ go_library(
...
@@ -32,6 +29,10 @@ go_library(
"//pkg/kubelet/qos:go_default_library",
"//pkg/kubelet/qos:go_default_library",
"//pkg/master/ports:go_default_library",
"//pkg/master/ports:go_default_library",
"//pkg/proxy:go_default_library",
"//pkg/proxy:go_default_library",
"//pkg/proxy/apis/kubeproxyconfig:go_default_library",
"//pkg/proxy/apis/kubeproxyconfig/scheme:go_default_library",
"//pkg/proxy/apis/kubeproxyconfig/v1alpha1:go_default_library",
"//pkg/proxy/apis/kubeproxyconfig/validation:go_default_library",
"//pkg/proxy/config:go_default_library",
"//pkg/proxy/config:go_default_library",
"//pkg/proxy/healthcheck:go_default_library",
"//pkg/proxy/healthcheck:go_default_library",
"//pkg/proxy/iptables:go_default_library",
"//pkg/proxy/iptables:go_default_library",
...
@@ -62,7 +63,6 @@ go_library(
...
@@ -62,7 +63,6 @@ go_library(
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library",
"//vendor/k8s.io/apiserver/pkg/server/healthz:go_default_library",
"//vendor/k8s.io/apiserver/pkg/server/healthz:go_default_library",
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
...
@@ -85,24 +85,18 @@ go_library(
...
@@ -85,24 +85,18 @@ go_library(
go_test(
go_test(
name = "go_default_test",
name = "go_default_test",
srcs = [
srcs = ["server_test.go"],
"server_test.go",
"validation_test.go",
],
importpath = "k8s.io/kubernetes/cmd/kube-proxy/app",
importpath = "k8s.io/kubernetes/cmd/kube-proxy/app",
library = ":go_default_library",
library = ":go_default_library",
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/apis/componentconfig:go_default_library",
"//pkg/proxy/apis/kubeproxyconfig:go_default_library",
"//pkg/apis/componentconfig/v1alpha1:go_default_library",
"//pkg/util/configz:go_default_library",
"//pkg/util/configz:go_default_library",
"//pkg/util/iptables:go_default_library",
"//pkg/util/iptables:go_default_library",
"//pkg/util/pointer:go_default_library",
"//pkg/util/pointer:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library",
],
],
)
)
...
...
hack/.golint_failures
View file @
75b9fb28
...
@@ -228,6 +228,8 @@ pkg/probe/exec
...
@@ -228,6 +228,8 @@ pkg/probe/exec
pkg/probe/http
pkg/probe/http
pkg/probe/tcp
pkg/probe/tcp
pkg/proxy
pkg/proxy
pkg/proxy/apis/kubeproxyconfig
pkg/proxy/apis/kubeproxyconfig/v1alpha1
pkg/proxy/iptables
pkg/proxy/iptables
pkg/proxy/userspace
pkg/proxy/userspace
pkg/proxy/util
pkg/proxy/util
...
...
pkg/apis/componentconfig/v1alpha1/BUILD
View file @
75b9fb28
...
@@ -22,7 +22,6 @@ go_library(
...
@@ -22,7 +22,6 @@ go_library(
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/apis/componentconfig:go_default_library",
"//pkg/apis/componentconfig:go_default_library",
"//pkg/kubelet/apis:go_default_library",
"//pkg/kubelet/apis:go_default_library",
"//pkg/kubelet/qos:go_default_library",
"//pkg/master/ports:go_default_library",
"//pkg/master/ports:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
...
...
pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go
View file @
75b9fb28
This diff is collapsed.
Click to expand it.
pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go
View file @
75b9fb28
...
@@ -37,26 +37,6 @@ func init() {
...
@@ -37,26 +37,6 @@ func init() {
func
RegisterDeepCopies
(
scheme
*
runtime
.
Scheme
)
error
{
func
RegisterDeepCopies
(
scheme
*
runtime
.
Scheme
)
error
{
return
scheme
.
AddGeneratedDeepCopyFuncs
(
return
scheme
.
AddGeneratedDeepCopyFuncs
(
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
ClientConnectionConfiguration
)
.
DeepCopyInto
(
out
.
(
*
ClientConnectionConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
ClientConnectionConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyConntrackConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyConntrackConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyConntrackConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyIPTablesConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyIPTablesConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyIPTablesConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyIPVSConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyIPVSConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyIPVSConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeSchedulerConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeSchedulerConfiguration
))
in
.
(
*
KubeSchedulerConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeSchedulerConfiguration
))
return
nil
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeSchedulerConfiguration
{})},
},
InType
:
reflect
.
TypeOf
(
&
KubeSchedulerConfiguration
{})},
...
@@ -68,126 +48,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
...
@@ -68,126 +48,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
ClientConnectionConfiguration
)
DeepCopyInto
(
out
*
ClientConnectionConfiguration
)
{
*
out
=
*
in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientConnectionConfiguration.
func
(
in
*
ClientConnectionConfiguration
)
DeepCopy
()
*
ClientConnectionConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
ClientConnectionConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyConfiguration
)
DeepCopyInto
(
out
*
KubeProxyConfiguration
)
{
*
out
=
*
in
out
.
TypeMeta
=
in
.
TypeMeta
out
.
ClientConnection
=
in
.
ClientConnection
in
.
IPTables
.
DeepCopyInto
(
&
out
.
IPTables
)
out
.
IPVS
=
in
.
IPVS
if
in
.
OOMScoreAdj
!=
nil
{
in
,
out
:=
&
in
.
OOMScoreAdj
,
&
out
.
OOMScoreAdj
if
*
in
==
nil
{
*
out
=
nil
}
else
{
*
out
=
new
(
int32
)
**
out
=
**
in
}
}
out
.
UDPIdleTimeout
=
in
.
UDPIdleTimeout
out
.
Conntrack
=
in
.
Conntrack
out
.
ConfigSyncPeriod
=
in
.
ConfigSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConfiguration.
func
(
in
*
KubeProxyConfiguration
)
DeepCopy
()
*
KubeProxyConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func
(
in
*
KubeProxyConfiguration
)
DeepCopyObject
()
runtime
.
Object
{
if
c
:=
in
.
DeepCopy
();
c
!=
nil
{
return
c
}
else
{
return
nil
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyConntrackConfiguration
)
DeepCopyInto
(
out
*
KubeProxyConntrackConfiguration
)
{
*
out
=
*
in
out
.
TCPEstablishedTimeout
=
in
.
TCPEstablishedTimeout
out
.
TCPCloseWaitTimeout
=
in
.
TCPCloseWaitTimeout
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConntrackConfiguration.
func
(
in
*
KubeProxyConntrackConfiguration
)
DeepCopy
()
*
KubeProxyConntrackConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyConntrackConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyIPTablesConfiguration
)
DeepCopyInto
(
out
*
KubeProxyIPTablesConfiguration
)
{
*
out
=
*
in
if
in
.
MasqueradeBit
!=
nil
{
in
,
out
:=
&
in
.
MasqueradeBit
,
&
out
.
MasqueradeBit
if
*
in
==
nil
{
*
out
=
nil
}
else
{
*
out
=
new
(
int32
)
**
out
=
**
in
}
}
out
.
SyncPeriod
=
in
.
SyncPeriod
out
.
MinSyncPeriod
=
in
.
MinSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPTablesConfiguration.
func
(
in
*
KubeProxyIPTablesConfiguration
)
DeepCopy
()
*
KubeProxyIPTablesConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyIPTablesConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyIPVSConfiguration
)
DeepCopyInto
(
out
*
KubeProxyIPVSConfiguration
)
{
*
out
=
*
in
out
.
SyncPeriod
=
in
.
SyncPeriod
out
.
MinSyncPeriod
=
in
.
MinSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPVSConfiguration.
func
(
in
*
KubeProxyIPVSConfiguration
)
DeepCopy
()
*
KubeProxyIPVSConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyIPVSConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeSchedulerConfiguration
)
DeepCopyInto
(
out
*
KubeSchedulerConfiguration
)
{
func
(
in
*
KubeSchedulerConfiguration
)
DeepCopyInto
(
out
*
KubeSchedulerConfiguration
)
{
*
out
=
*
in
*
out
=
*
in
out
.
TypeMeta
=
in
.
TypeMeta
out
.
TypeMeta
=
in
.
TypeMeta
...
...
pkg/apis/componentconfig/v1alpha1/zz_generated.defaults.go
View file @
75b9fb28
...
@@ -28,15 +28,10 @@ import (
...
@@ -28,15 +28,10 @@ import (
// Public to allow building arbitrary schemes.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
// All generated defaulters are covering - they call all nested defaulters.
func
RegisterDefaults
(
scheme
*
runtime
.
Scheme
)
error
{
func
RegisterDefaults
(
scheme
*
runtime
.
Scheme
)
error
{
scheme
.
AddTypeDefaultingFunc
(
&
KubeProxyConfiguration
{},
func
(
obj
interface
{})
{
SetObjectDefaults_KubeProxyConfiguration
(
obj
.
(
*
KubeProxyConfiguration
))
})
scheme
.
AddTypeDefaultingFunc
(
&
KubeSchedulerConfiguration
{},
func
(
obj
interface
{})
{
SetObjectDefaults_KubeSchedulerConfiguration
(
obj
.
(
*
KubeSchedulerConfiguration
))
})
scheme
.
AddTypeDefaultingFunc
(
&
KubeSchedulerConfiguration
{},
func
(
obj
interface
{})
{
SetObjectDefaults_KubeSchedulerConfiguration
(
obj
.
(
*
KubeSchedulerConfiguration
))
})
return
nil
return
nil
}
}
func
SetObjectDefaults_KubeProxyConfiguration
(
in
*
KubeProxyConfiguration
)
{
SetDefaults_KubeProxyConfiguration
(
in
)
}
func
SetObjectDefaults_KubeSchedulerConfiguration
(
in
*
KubeSchedulerConfiguration
)
{
func
SetObjectDefaults_KubeSchedulerConfiguration
(
in
*
KubeSchedulerConfiguration
)
{
SetDefaults_KubeSchedulerConfiguration
(
in
)
SetDefaults_KubeSchedulerConfiguration
(
in
)
SetDefaults_LeaderElectionConfiguration
(
&
in
.
LeaderElection
)
SetDefaults_LeaderElectionConfiguration
(
&
in
.
LeaderElection
)
...
...
pkg/apis/componentconfig/zz_generated.deepcopy.go
View file @
75b9fb28
...
@@ -37,10 +37,6 @@ func init() {
...
@@ -37,10 +37,6 @@ func init() {
func
RegisterDeepCopies
(
scheme
*
runtime
.
Scheme
)
error
{
func
RegisterDeepCopies
(
scheme
*
runtime
.
Scheme
)
error
{
return
scheme
.
AddGeneratedDeepCopyFuncs
(
return
scheme
.
AddGeneratedDeepCopyFuncs
(
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
ClientConnectionConfiguration
)
.
DeepCopyInto
(
out
.
(
*
ClientConnectionConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
ClientConnectionConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
GroupResource
)
.
DeepCopyInto
(
out
.
(
*
GroupResource
))
in
.
(
*
GroupResource
)
.
DeepCopyInto
(
out
.
(
*
GroupResource
))
return
nil
return
nil
},
InType
:
reflect
.
TypeOf
(
&
GroupResource
{})},
},
InType
:
reflect
.
TypeOf
(
&
GroupResource
{})},
...
@@ -53,22 +49,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
...
@@ -53,22 +49,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
return
nil
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeControllerManagerConfiguration
{})},
},
InType
:
reflect
.
TypeOf
(
&
KubeControllerManagerConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyConntrackConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyConntrackConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyConntrackConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyIPTablesConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyIPTablesConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyIPTablesConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyIPVSConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyIPVSConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyIPVSConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeSchedulerConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeSchedulerConfiguration
))
in
.
(
*
KubeSchedulerConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeSchedulerConfiguration
))
return
nil
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeSchedulerConfiguration
{})},
},
InType
:
reflect
.
TypeOf
(
&
KubeSchedulerConfiguration
{})},
...
@@ -92,22 +72,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
...
@@ -92,22 +72,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
ClientConnectionConfiguration
)
DeepCopyInto
(
out
*
ClientConnectionConfiguration
)
{
*
out
=
*
in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientConnectionConfiguration.
func
(
in
*
ClientConnectionConfiguration
)
DeepCopy
()
*
ClientConnectionConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
ClientConnectionConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
GroupResource
)
DeepCopyInto
(
out
*
GroupResource
)
{
func
(
in
*
GroupResource
)
DeepCopyInto
(
out
*
GroupResource
)
{
*
out
=
*
in
*
out
=
*
in
return
return
...
@@ -205,110 +169,6 @@ func (in *KubeControllerManagerConfiguration) DeepCopyObject() runtime.Object {
...
@@ -205,110 +169,6 @@ func (in *KubeControllerManagerConfiguration) DeepCopyObject() runtime.Object {
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyConfiguration
)
DeepCopyInto
(
out
*
KubeProxyConfiguration
)
{
*
out
=
*
in
out
.
TypeMeta
=
in
.
TypeMeta
out
.
ClientConnection
=
in
.
ClientConnection
in
.
IPTables
.
DeepCopyInto
(
&
out
.
IPTables
)
out
.
IPVS
=
in
.
IPVS
if
in
.
OOMScoreAdj
!=
nil
{
in
,
out
:=
&
in
.
OOMScoreAdj
,
&
out
.
OOMScoreAdj
if
*
in
==
nil
{
*
out
=
nil
}
else
{
*
out
=
new
(
int32
)
**
out
=
**
in
}
}
out
.
UDPIdleTimeout
=
in
.
UDPIdleTimeout
out
.
Conntrack
=
in
.
Conntrack
out
.
ConfigSyncPeriod
=
in
.
ConfigSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConfiguration.
func
(
in
*
KubeProxyConfiguration
)
DeepCopy
()
*
KubeProxyConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func
(
in
*
KubeProxyConfiguration
)
DeepCopyObject
()
runtime
.
Object
{
if
c
:=
in
.
DeepCopy
();
c
!=
nil
{
return
c
}
else
{
return
nil
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyConntrackConfiguration
)
DeepCopyInto
(
out
*
KubeProxyConntrackConfiguration
)
{
*
out
=
*
in
out
.
TCPEstablishedTimeout
=
in
.
TCPEstablishedTimeout
out
.
TCPCloseWaitTimeout
=
in
.
TCPCloseWaitTimeout
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConntrackConfiguration.
func
(
in
*
KubeProxyConntrackConfiguration
)
DeepCopy
()
*
KubeProxyConntrackConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyConntrackConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyIPTablesConfiguration
)
DeepCopyInto
(
out
*
KubeProxyIPTablesConfiguration
)
{
*
out
=
*
in
if
in
.
MasqueradeBit
!=
nil
{
in
,
out
:=
&
in
.
MasqueradeBit
,
&
out
.
MasqueradeBit
if
*
in
==
nil
{
*
out
=
nil
}
else
{
*
out
=
new
(
int32
)
**
out
=
**
in
}
}
out
.
SyncPeriod
=
in
.
SyncPeriod
out
.
MinSyncPeriod
=
in
.
MinSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPTablesConfiguration.
func
(
in
*
KubeProxyIPTablesConfiguration
)
DeepCopy
()
*
KubeProxyIPTablesConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyIPTablesConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyIPVSConfiguration
)
DeepCopyInto
(
out
*
KubeProxyIPVSConfiguration
)
{
*
out
=
*
in
out
.
SyncPeriod
=
in
.
SyncPeriod
out
.
MinSyncPeriod
=
in
.
MinSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPVSConfiguration.
func
(
in
*
KubeProxyIPVSConfiguration
)
DeepCopy
()
*
KubeProxyIPVSConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyIPVSConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeSchedulerConfiguration
)
DeepCopyInto
(
out
*
KubeSchedulerConfiguration
)
{
func
(
in
*
KubeSchedulerConfiguration
)
DeepCopyInto
(
out
*
KubeSchedulerConfiguration
)
{
*
out
=
*
in
*
out
=
*
in
out
.
TypeMeta
=
in
.
TypeMeta
out
.
TypeMeta
=
in
.
TypeMeta
...
...
pkg/generated/openapi/BUILD
View file @
75b9fb28
...
@@ -15,6 +15,7 @@ openapi_library(
...
@@ -15,6 +15,7 @@ openapi_library(
"pkg/apis/abac/v1beta1",
"pkg/apis/abac/v1beta1",
"pkg/apis/componentconfig/v1alpha1",
"pkg/apis/componentconfig/v1alpha1",
"pkg/kubelet/apis/kubeletconfig/v1alpha1",
"pkg/kubelet/apis/kubeletconfig/v1alpha1",
"pkg/proxy/apis/kubeproxyconfig/v1alpha1",
"pkg/version",
"pkg/version",
],
],
tags = ["automanaged"],
tags = ["automanaged"],
...
...
pkg/proxy/BUILD
View file @
75b9fb28
...
@@ -26,6 +26,7 @@ filegroup(
...
@@ -26,6 +26,7 @@ filegroup(
name = "all-srcs",
name = "all-srcs",
srcs = [
srcs = [
":package-srcs",
":package-srcs",
"//pkg/proxy/apis:all-srcs",
"//pkg/proxy/config:all-srcs",
"//pkg/proxy/config:all-srcs",
"//pkg/proxy/healthcheck:all-srcs",
"//pkg/proxy/healthcheck:all-srcs",
"//pkg/proxy/iptables:all-srcs",
"//pkg/proxy/iptables:all-srcs",
...
...
pkg/proxy/apis/BUILD
0 → 100644
View file @
75b9fb28
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = [
"well_known_annotations.go",
"well_known_labels.go",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//pkg/proxy/apis/kubeproxyconfig:all-srcs",
],
tags = ["automanaged"],
)
pkg/proxy/apis/proxyconfig/BUILD
0 → 100644
View file @
75b9fb28
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = [
"doc.go",
"register.go",
"types.go",
"zz_generated.deepcopy.go",
],
importpath = "k8s.io/kubernetes/pkg/proxy/apis/kubeproxyconfig",
deps = [
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//pkg/proxy/apis/kubeproxyconfig/scheme:all-srcs",
"//pkg/proxy/apis/kubeproxyconfig/v1alpha1:all-srcs",
"//pkg/proxy/apis/kubeproxyconfig/validation:all-srcs",
],
tags = ["automanaged"],
)
pkg/proxy/apis/proxyconfig/scheme/BUILD
0 → 100644
View file @
75b9fb28
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["scheme.go"],
importpath = "k8s.io/kubernetes/pkg/proxy/apis/kubeproxyconfig/scheme",
visibility = ["//visibility:public"],
deps = [
"//pkg/proxy/apis/kubeproxyconfig:go_default_library",
"//pkg/proxy/apis/kubeproxyconfig/v1alpha1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
pkg/proxy/apis/proxyconfig/v1alpha1/BUILD
0 → 100644
View file @
75b9fb28
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = [
"defaults.go",
"doc.go",
"register.go",
"types.go",
"zz_generated.conversion.go",
"zz_generated.deepcopy.go",
"zz_generated.defaults.go",
],
importpath = "k8s.io/kubernetes/pkg/proxy/apis/kubeproxyconfig/v1alpha1",
deps = [
"//pkg/kubelet/qos:go_default_library",
"//pkg/master/ports:go_default_library",
"//pkg/proxy/apis/kubeproxyconfig:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
pkg/proxy/apis/proxyconfig/v1alpha1/zz_generated.conversion.go
0 → 100644
View file @
75b9fb28
This diff is collapsed.
Click to expand it.
pkg/proxy/apis/proxyconfig/v1alpha1/zz_generated.deepcopy.go
0 → 100644
View file @
75b9fb28
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package
v1alpha1
import
(
conversion
"k8s.io/apimachinery/pkg/conversion"
runtime
"k8s.io/apimachinery/pkg/runtime"
reflect
"reflect"
)
func
init
()
{
SchemeBuilder
.
Register
(
RegisterDeepCopies
)
}
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
//
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
func
RegisterDeepCopies
(
scheme
*
runtime
.
Scheme
)
error
{
return
scheme
.
AddGeneratedDeepCopyFuncs
(
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
ClientConnectionConfiguration
)
.
DeepCopyInto
(
out
.
(
*
ClientConnectionConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
ClientConnectionConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyConntrackConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyConntrackConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyConntrackConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyIPTablesConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyIPTablesConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyIPTablesConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyIPVSConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyIPVSConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyIPVSConfiguration
{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
ClientConnectionConfiguration
)
DeepCopyInto
(
out
*
ClientConnectionConfiguration
)
{
*
out
=
*
in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientConnectionConfiguration.
func
(
in
*
ClientConnectionConfiguration
)
DeepCopy
()
*
ClientConnectionConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
ClientConnectionConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyConfiguration
)
DeepCopyInto
(
out
*
KubeProxyConfiguration
)
{
*
out
=
*
in
out
.
TypeMeta
=
in
.
TypeMeta
out
.
ClientConnection
=
in
.
ClientConnection
in
.
IPTables
.
DeepCopyInto
(
&
out
.
IPTables
)
out
.
IPVS
=
in
.
IPVS
if
in
.
OOMScoreAdj
!=
nil
{
in
,
out
:=
&
in
.
OOMScoreAdj
,
&
out
.
OOMScoreAdj
if
*
in
==
nil
{
*
out
=
nil
}
else
{
*
out
=
new
(
int32
)
**
out
=
**
in
}
}
out
.
UDPIdleTimeout
=
in
.
UDPIdleTimeout
out
.
Conntrack
=
in
.
Conntrack
out
.
ConfigSyncPeriod
=
in
.
ConfigSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConfiguration.
func
(
in
*
KubeProxyConfiguration
)
DeepCopy
()
*
KubeProxyConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func
(
in
*
KubeProxyConfiguration
)
DeepCopyObject
()
runtime
.
Object
{
if
c
:=
in
.
DeepCopy
();
c
!=
nil
{
return
c
}
else
{
return
nil
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyConntrackConfiguration
)
DeepCopyInto
(
out
*
KubeProxyConntrackConfiguration
)
{
*
out
=
*
in
out
.
TCPEstablishedTimeout
=
in
.
TCPEstablishedTimeout
out
.
TCPCloseWaitTimeout
=
in
.
TCPCloseWaitTimeout
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConntrackConfiguration.
func
(
in
*
KubeProxyConntrackConfiguration
)
DeepCopy
()
*
KubeProxyConntrackConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyConntrackConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyIPTablesConfiguration
)
DeepCopyInto
(
out
*
KubeProxyIPTablesConfiguration
)
{
*
out
=
*
in
if
in
.
MasqueradeBit
!=
nil
{
in
,
out
:=
&
in
.
MasqueradeBit
,
&
out
.
MasqueradeBit
if
*
in
==
nil
{
*
out
=
nil
}
else
{
*
out
=
new
(
int32
)
**
out
=
**
in
}
}
out
.
SyncPeriod
=
in
.
SyncPeriod
out
.
MinSyncPeriod
=
in
.
MinSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPTablesConfiguration.
func
(
in
*
KubeProxyIPTablesConfiguration
)
DeepCopy
()
*
KubeProxyIPTablesConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyIPTablesConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyIPVSConfiguration
)
DeepCopyInto
(
out
*
KubeProxyIPVSConfiguration
)
{
*
out
=
*
in
out
.
SyncPeriod
=
in
.
SyncPeriod
out
.
MinSyncPeriod
=
in
.
MinSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPVSConfiguration.
func
(
in
*
KubeProxyIPVSConfiguration
)
DeepCopy
()
*
KubeProxyIPVSConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyIPVSConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
pkg/proxy/apis/proxyconfig/v1alpha1/zz_generated.defaults.go
0 → 100644
View file @
75b9fb28
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by defaulter-gen. Do not edit it manually!
package
v1alpha1
import
(
runtime
"k8s.io/apimachinery/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func
RegisterDefaults
(
scheme
*
runtime
.
Scheme
)
error
{
scheme
.
AddTypeDefaultingFunc
(
&
KubeProxyConfiguration
{},
func
(
obj
interface
{})
{
SetObjectDefaults_KubeProxyConfiguration
(
obj
.
(
*
KubeProxyConfiguration
))
})
return
nil
}
func
SetObjectDefaults_KubeProxyConfiguration
(
in
*
KubeProxyConfiguration
)
{
SetDefaults_KubeProxyConfiguration
(
in
)
}
pkg/proxy/apis/proxyconfig/validation/BUILD
0 → 100644
View file @
75b9fb28
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_test",
)
go_library(
name = "go_default_library",
srcs = ["validation.go"],
importpath = "k8s.io/kubernetes/pkg/proxy/apis/kubeproxyconfig/validation",
deps = [
"//pkg/api/validation:go_default_library",
"//pkg/proxy/apis/kubeproxyconfig:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
go_test(
name = "go_default_test",
srcs = ["validation_test.go"],
importpath = "k8s.io/kubernetes/pkg/proxy/apis/kubeproxyconfig/validation",
library = ":go_default_library",
deps = [
"//pkg/proxy/apis/kubeproxyconfig:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library",
],
)
pkg/proxy/apis/proxyconfig/zz_generated.deepcopy.go
0 → 100644
View file @
75b9fb28
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package
kubeproxyconfig
import
(
conversion
"k8s.io/apimachinery/pkg/conversion"
runtime
"k8s.io/apimachinery/pkg/runtime"
reflect
"reflect"
)
func
init
()
{
SchemeBuilder
.
Register
(
RegisterDeepCopies
)
}
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
//
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
func
RegisterDeepCopies
(
scheme
*
runtime
.
Scheme
)
error
{
return
scheme
.
AddGeneratedDeepCopyFuncs
(
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
ClientConnectionConfiguration
)
.
DeepCopyInto
(
out
.
(
*
ClientConnectionConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
ClientConnectionConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyConntrackConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyConntrackConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyConntrackConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyIPTablesConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyIPTablesConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyIPTablesConfiguration
{})},
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
func
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
in
.
(
*
KubeProxyIPVSConfiguration
)
.
DeepCopyInto
(
out
.
(
*
KubeProxyIPVSConfiguration
))
return
nil
},
InType
:
reflect
.
TypeOf
(
&
KubeProxyIPVSConfiguration
{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
ClientConnectionConfiguration
)
DeepCopyInto
(
out
*
ClientConnectionConfiguration
)
{
*
out
=
*
in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientConnectionConfiguration.
func
(
in
*
ClientConnectionConfiguration
)
DeepCopy
()
*
ClientConnectionConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
ClientConnectionConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyConfiguration
)
DeepCopyInto
(
out
*
KubeProxyConfiguration
)
{
*
out
=
*
in
out
.
TypeMeta
=
in
.
TypeMeta
out
.
ClientConnection
=
in
.
ClientConnection
in
.
IPTables
.
DeepCopyInto
(
&
out
.
IPTables
)
out
.
IPVS
=
in
.
IPVS
if
in
.
OOMScoreAdj
!=
nil
{
in
,
out
:=
&
in
.
OOMScoreAdj
,
&
out
.
OOMScoreAdj
if
*
in
==
nil
{
*
out
=
nil
}
else
{
*
out
=
new
(
int32
)
**
out
=
**
in
}
}
out
.
UDPIdleTimeout
=
in
.
UDPIdleTimeout
out
.
Conntrack
=
in
.
Conntrack
out
.
ConfigSyncPeriod
=
in
.
ConfigSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConfiguration.
func
(
in
*
KubeProxyConfiguration
)
DeepCopy
()
*
KubeProxyConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func
(
in
*
KubeProxyConfiguration
)
DeepCopyObject
()
runtime
.
Object
{
if
c
:=
in
.
DeepCopy
();
c
!=
nil
{
return
c
}
else
{
return
nil
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyConntrackConfiguration
)
DeepCopyInto
(
out
*
KubeProxyConntrackConfiguration
)
{
*
out
=
*
in
out
.
TCPEstablishedTimeout
=
in
.
TCPEstablishedTimeout
out
.
TCPCloseWaitTimeout
=
in
.
TCPCloseWaitTimeout
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConntrackConfiguration.
func
(
in
*
KubeProxyConntrackConfiguration
)
DeepCopy
()
*
KubeProxyConntrackConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyConntrackConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyIPTablesConfiguration
)
DeepCopyInto
(
out
*
KubeProxyIPTablesConfiguration
)
{
*
out
=
*
in
if
in
.
MasqueradeBit
!=
nil
{
in
,
out
:=
&
in
.
MasqueradeBit
,
&
out
.
MasqueradeBit
if
*
in
==
nil
{
*
out
=
nil
}
else
{
*
out
=
new
(
int32
)
**
out
=
**
in
}
}
out
.
SyncPeriod
=
in
.
SyncPeriod
out
.
MinSyncPeriod
=
in
.
MinSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPTablesConfiguration.
func
(
in
*
KubeProxyIPTablesConfiguration
)
DeepCopy
()
*
KubeProxyIPTablesConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyIPTablesConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
KubeProxyIPVSConfiguration
)
DeepCopyInto
(
out
*
KubeProxyIPVSConfiguration
)
{
*
out
=
*
in
out
.
SyncPeriod
=
in
.
SyncPeriod
out
.
MinSyncPeriod
=
in
.
MinSyncPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPVSConfiguration.
func
(
in
*
KubeProxyIPVSConfiguration
)
DeepCopy
()
*
KubeProxyIPVSConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
KubeProxyIPVSConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
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