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
fa3fb91a
Commit
fa3fb91a
authored
Jan 02, 2018
by
Andy Goldstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kube-proxy: fix field name comments & json tags
Signed-off-by:
Andy Goldstein
<
andy.goldstein@gmail.com
>
parent
da9a4d5d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
server_test.go
cmd/kube-proxy/app/server_test.go
+1
-1
types.go
pkg/proxy/apis/kubeproxyconfig/types.go
+5
-5
types.go
pkg/proxy/apis/kubeproxyconfig/v1alpha1/types.go
+7
-7
No files found.
cmd/kube-proxy/app/server_test.go
View file @
fa3fb91a
...
@@ -430,7 +430,7 @@ mode: "%s"
...
@@ -430,7 +430,7 @@ mode: "%s"
oomScoreAdj: 17
oomScoreAdj: 17
portRange: "2-7"
portRange: "2-7"
resourceContainer: /foo
resourceContainer: /foo
udp
TimeoutMilliseconds
: 123ms
udp
IdleTimeout
: 123ms
`
`
testCases
:=
[]
struct
{
testCases
:=
[]
struct
{
...
...
pkg/proxy/apis/kubeproxyconfig/types.go
View file @
fa3fb91a
...
@@ -26,7 +26,7 @@ import (
...
@@ -26,7 +26,7 @@ import (
// ClientConnectionConfiguration contains details for constructing a client.
// ClientConnectionConfiguration contains details for constructing a client.
type
ClientConnectionConfiguration
struct
{
type
ClientConnectionConfiguration
struct
{
// kube
ConfigFile
is the path to a kubeconfig file.
// kube
config
is the path to a kubeconfig file.
KubeConfigFile
string
KubeConfigFile
string
// acceptContentTypes defines the Accept header sent by clients when connecting to a server, overriding the
// acceptContentTypes defines the Accept header sent by clients when connecting to a server, overriding the
// default value of 'application/json'. This field will control all connections to the server used by a particular
// default value of 'application/json'. This field will control all connections to the server used by a particular
...
@@ -97,13 +97,13 @@ type KubeProxyConntrackConfiguration struct {
...
@@ -97,13 +97,13 @@ type KubeProxyConntrackConfiguration struct {
type
KubeProxyConfiguration
struct
{
type
KubeProxyConfiguration
struct
{
metav1
.
TypeMeta
metav1
.
TypeMeta
// featureGates is a comma-separated list of key=value pairs that control
// TODO FeatureGates really should be a map but that requires refactoring all
// which alpha/beta features are enabled.
//
// TODO this really should be a map but that requires refactoring all
// components to use config files because local-up-cluster.sh only supports
// components to use config files because local-up-cluster.sh only supports
// the --feature-gates flag right now, which is comma-separated key=value
// the --feature-gates flag right now, which is comma-separated key=value
// pairs.
// pairs.
//
// featureGates is a comma-separated list of key=value pairs that control
// which alpha/beta features are enabled.
FeatureGates
string
FeatureGates
string
// bindAddress is the IP address for the proxy server to serve on (set to 0.0.0.0
// bindAddress is the IP address for the proxy server to serve on (set to 0.0.0.0
...
...
pkg/proxy/apis/kubeproxyconfig/v1alpha1/types.go
View file @
fa3fb91a
...
@@ -22,7 +22,7 @@ import (
...
@@ -22,7 +22,7 @@ import (
// ClientConnectionConfiguration contains details for constructing a client.
// ClientConnectionConfiguration contains details for constructing a client.
type
ClientConnectionConfiguration
struct
{
type
ClientConnectionConfiguration
struct
{
// kube
ConfigFile
is the path to a kubeconfig file.
// kube
config
is the path to a kubeconfig file.
KubeConfigFile
string
`json:"kubeconfig"`
KubeConfigFile
string
`json:"kubeconfig"`
// acceptContentTypes defines the Accept header sent by clients when connecting to a server, overriding the
// acceptContentTypes defines the Accept header sent by clients when connecting to a server, overriding the
// default value of 'application/json'. This field will control all connections to the server used by a particular
// default value of 'application/json'. This field will control all connections to the server used by a particular
...
@@ -30,7 +30,7 @@ type ClientConnectionConfiguration struct {
...
@@ -30,7 +30,7 @@ type ClientConnectionConfiguration struct {
AcceptContentTypes
string
`json:"acceptContentTypes"`
AcceptContentTypes
string
`json:"acceptContentTypes"`
// contentType is the content type used when sending data to the server from this client.
// contentType is the content type used when sending data to the server from this client.
ContentType
string
`json:"contentType"`
ContentType
string
`json:"contentType"`
//
c
ps controls the number of queries per second allowed for this connection.
//
q
ps controls the number of queries per second allowed for this connection.
QPS
float32
`json:"qps"`
QPS
float32
`json:"qps"`
// burst allows extra queries to accumulate when a client is exceeding its rate.
// burst allows extra queries to accumulate when a client is exceeding its rate.
Burst
int
`json:"burst"`
Burst
int
`json:"burst"`
...
@@ -93,13 +93,13 @@ type KubeProxyConntrackConfiguration struct {
...
@@ -93,13 +93,13 @@ type KubeProxyConntrackConfiguration struct {
type
KubeProxyConfiguration
struct
{
type
KubeProxyConfiguration
struct
{
metav1
.
TypeMeta
`json:",inline"`
metav1
.
TypeMeta
`json:",inline"`
// featureGates is a comma-separated list of key=value pairs that control
// TODO FeatureGates really should be a map but that requires refactoring all
// which alpha/beta features are enabled.
//
// TODO this really should be a map but that requires refactoring all
// components to use config files because local-up-cluster.sh only supports
// components to use config files because local-up-cluster.sh only supports
// the --feature-gates flag right now, which is comma-separated key=value
// the --feature-gates flag right now, which is comma-separated key=value
// pairs.
// pairs.
//
// featureGates is a comma-separated list of key=value pairs that control
// which alpha/beta features are enabled.
FeatureGates
string
`json:"featureGates"`
FeatureGates
string
`json:"featureGates"`
// bindAddress is the IP address for the proxy server to serve on (set to 0.0.0.0
// bindAddress is the IP address for the proxy server to serve on (set to 0.0.0.0
...
@@ -140,7 +140,7 @@ type KubeProxyConfiguration struct {
...
@@ -140,7 +140,7 @@ type KubeProxyConfiguration struct {
ResourceContainer
string
`json:"resourceContainer"`
ResourceContainer
string
`json:"resourceContainer"`
// udpIdleTimeout is how long an idle UDP connection will be kept open (e.g. '250ms', '2s').
// udpIdleTimeout is how long an idle UDP connection will be kept open (e.g. '250ms', '2s').
// Must be greater than 0. Only applicable for proxyMode=userspace.
// Must be greater than 0. Only applicable for proxyMode=userspace.
UDPIdleTimeout
metav1
.
Duration
`json:"udp
TimeoutMilliseconds
"`
UDPIdleTimeout
metav1
.
Duration
`json:"udp
IdleTimeout
"`
// conntrack contains conntrack-related configuration options.
// conntrack contains conntrack-related configuration options.
Conntrack
KubeProxyConntrackConfiguration
`json:"conntrack"`
Conntrack
KubeProxyConntrackConfiguration
`json:"conntrack"`
// configSyncPeriod is how often configuration from the apiserver is refreshed. Must be greater
// configSyncPeriod is how often configuration from the apiserver is refreshed. Must be greater
...
...
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