mirror of https://github.com/kubernetes/kops.git
Allow setting additional flags for apiserver, kcm and scheduler
This commit is contained in:
parent
14c0b647db
commit
4a00078845
|
|
@ -1746,6 +1746,10 @@ spec:
|
||||||
in the 'kube-system' namespace to be used for TLS bootstrapping
|
in the 'kube-system' namespace to be used for TLS bootstrapping
|
||||||
authentication
|
authentication
|
||||||
type: boolean
|
type: boolean
|
||||||
|
enableContentionProfiling:
|
||||||
|
description: EnableContentionProfiling enables block profiling,
|
||||||
|
if profiling is enabled
|
||||||
|
type: boolean
|
||||||
enableProfiling:
|
enableProfiling:
|
||||||
description: EnableProfiling enables profiling via web interface
|
description: EnableProfiling enables profiling via web interface
|
||||||
host:port/debug/pprof/
|
host:port/debug/pprof/
|
||||||
|
|
@ -2117,6 +2121,10 @@ spec:
|
||||||
sync loop in the attach-detach controller. This can cause volumes
|
sync loop in the attach-detach controller. This can cause volumes
|
||||||
to become mismatched with pods
|
to become mismatched with pods
|
||||||
type: boolean
|
type: boolean
|
||||||
|
enableContentionProfiling:
|
||||||
|
description: EnableContentionProfiling enables block profiling,
|
||||||
|
if profiling is enabled
|
||||||
|
type: boolean
|
||||||
enableLeaderMigration:
|
enableLeaderMigration:
|
||||||
description: EnableLeaderMigration enables controller leader migration.
|
description: EnableLeaderMigration enables controller leader migration.
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
@ -3496,6 +3504,10 @@ spec:
|
||||||
the burst quota is exhausted
|
the burst quota is exhausted
|
||||||
format: int32
|
format: int32
|
||||||
type: integer
|
type: integer
|
||||||
|
enableContentionProfiling:
|
||||||
|
description: EnableContentionProfiling enables block profiling,
|
||||||
|
if profiling is enabled
|
||||||
|
type: boolean
|
||||||
enableProfiling:
|
enableProfiling:
|
||||||
description: EnableProfiling enables profiling via web interface
|
description: EnableProfiling enables profiling via web interface
|
||||||
host:port/debug/pprof/
|
host:port/debug/pprof/
|
||||||
|
|
@ -3509,6 +3521,19 @@ spec:
|
||||||
image:
|
image:
|
||||||
description: Image is the docker image to use
|
description: Image is the docker image to use
|
||||||
type: string
|
type: string
|
||||||
|
kubeAPIBurst:
|
||||||
|
description: KubeAPIBurst Burst to use while talking with kubernetes
|
||||||
|
apiserver. (default 30)
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
kubeAPIQPS:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
description: KubeAPIQPS QPS to use while talking with kubernetes
|
||||||
|
apiserver. (default 20)
|
||||||
|
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
leaderElection:
|
leaderElection:
|
||||||
description: LeaderElection defines the configuration of leader
|
description: LeaderElection defines the configuration of leader
|
||||||
election client.
|
election client.
|
||||||
|
|
|
||||||
|
|
@ -521,6 +521,8 @@ type KubeAPIServerConfig struct {
|
||||||
|
|
||||||
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
||||||
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
||||||
|
// EnableContentionProfiling enables block profiling, if profiling is enabled
|
||||||
|
EnableContentionProfiling *bool `json:"enableContentionProfiling,omitempty" flag:"contention-profiling"`
|
||||||
|
|
||||||
// CorsAllowedOrigins is a list of origins for CORS. An allowed origin can be a regular
|
// CorsAllowedOrigins is a list of origins for CORS. An allowed origin can be a regular
|
||||||
// expression to support subdomain matching. If this list is empty CORS will not be enabled.
|
// expression to support subdomain matching. If this list is empty CORS will not be enabled.
|
||||||
|
|
@ -671,6 +673,8 @@ type KubeControllerManagerConfig struct {
|
||||||
|
|
||||||
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
||||||
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
||||||
|
// EnableContentionProfiling enables block profiling, if profiling is enabled
|
||||||
|
EnableContentionProfiling *bool `json:"enableContentionProfiling,omitempty" flag:"contention-profiling"`
|
||||||
// EnableLeaderMigration enables controller leader migration.
|
// EnableLeaderMigration enables controller leader migration.
|
||||||
EnableLeaderMigration *bool `json:"enableLeaderMigration,omitempty" flag:"enable-leader-migration"`
|
EnableLeaderMigration *bool `json:"enableLeaderMigration,omitempty" flag:"enable-leader-migration"`
|
||||||
}
|
}
|
||||||
|
|
@ -740,6 +744,10 @@ type KubeSchedulerConfig struct {
|
||||||
Qps *resource.Quantity `json:"qps,omitempty" configfile:"ClientConnection.QPS" config:"clientConnection.qps,omitempty"`
|
Qps *resource.Quantity `json:"qps,omitempty" configfile:"ClientConnection.QPS" config:"clientConnection.qps,omitempty"`
|
||||||
// Burst sets the maximum qps to send to apiserver after the burst quota is exhausted
|
// Burst sets the maximum qps to send to apiserver after the burst quota is exhausted
|
||||||
Burst int32 `json:"burst,omitempty" configfile:"ClientConnection.Burst" config:"clientConnection.burst,omitempty"`
|
Burst int32 `json:"burst,omitempty" configfile:"ClientConnection.Burst" config:"clientConnection.burst,omitempty"`
|
||||||
|
// KubeAPIQPS QPS to use while talking with kubernetes apiserver. (default 20)
|
||||||
|
KubeAPIQPS *resource.Quantity `json:"kubeAPIQPS,omitempty" flag:"kube-api-qps"`
|
||||||
|
// KubeAPIBurst Burst to use while talking with kubernetes apiserver. (default 30)
|
||||||
|
KubeAPIBurst *int32 `json:"kubeAPIBurst,omitempty" flag:"kube-api-burst"`
|
||||||
// AuthenticationKubeconfig is the path to an Authentication Kubeconfig
|
// AuthenticationKubeconfig is the path to an Authentication Kubeconfig
|
||||||
AuthenticationKubeconfig string `json:"authenticationKubeconfig,omitempty" flag:"authentication-kubeconfig"`
|
AuthenticationKubeconfig string `json:"authenticationKubeconfig,omitempty" flag:"authentication-kubeconfig"`
|
||||||
// AuthorizationKubeconfig is the path to an Authorization Kubeconfig
|
// AuthorizationKubeconfig is the path to an Authorization Kubeconfig
|
||||||
|
|
@ -749,6 +757,8 @@ type KubeSchedulerConfig struct {
|
||||||
|
|
||||||
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
||||||
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
||||||
|
// EnableContentionProfiling enables block profiling, if profiling is enabled
|
||||||
|
EnableContentionProfiling *bool `json:"enableContentionProfiling,omitempty" flag:"contention-profiling"`
|
||||||
// TLSCertFile is the file containing the TLS server certificate.
|
// TLSCertFile is the file containing the TLS server certificate.
|
||||||
TLSCertFile *string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"`
|
TLSCertFile *string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"`
|
||||||
// TLSPrivateKeyFile is the file containing the private key for the TLS server certificate.
|
// TLSPrivateKeyFile is the file containing the private key for the TLS server certificate.
|
||||||
|
|
|
||||||
|
|
@ -528,6 +528,8 @@ type KubeAPIServerConfig struct {
|
||||||
|
|
||||||
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
||||||
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
||||||
|
// EnableContentionProfiling enables block profiling, if profiling is enabled
|
||||||
|
EnableContentionProfiling *bool `json:"enableContentionProfiling,omitempty" flag:"contention-profiling"`
|
||||||
|
|
||||||
// CorsAllowedOrigins is a list of origins for CORS. An allowed origin can be a regular
|
// CorsAllowedOrigins is a list of origins for CORS. An allowed origin can be a regular
|
||||||
// expression to support subdomain matching. If this list is empty CORS will not be enabled.
|
// expression to support subdomain matching. If this list is empty CORS will not be enabled.
|
||||||
|
|
@ -677,6 +679,8 @@ type KubeControllerManagerConfig struct {
|
||||||
|
|
||||||
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
||||||
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
||||||
|
// EnableContentionProfiling enables block profiling, if profiling is enabled
|
||||||
|
EnableContentionProfiling *bool `json:"enableContentionProfiling,omitempty" flag:"contention-profiling"`
|
||||||
// EnableLeaderMigration enables controller leader migration.
|
// EnableLeaderMigration enables controller leader migration.
|
||||||
EnableLeaderMigration *bool `json:"enableLeaderMigration,omitempty" flag:"enable-leader-migration"`
|
EnableLeaderMigration *bool `json:"enableLeaderMigration,omitempty" flag:"enable-leader-migration"`
|
||||||
}
|
}
|
||||||
|
|
@ -746,6 +750,10 @@ type KubeSchedulerConfig struct {
|
||||||
Qps *resource.Quantity `json:"qps,omitempty"`
|
Qps *resource.Quantity `json:"qps,omitempty"`
|
||||||
// Burst sets the maximum qps to send to apiserver after the burst quota is exhausted
|
// Burst sets the maximum qps to send to apiserver after the burst quota is exhausted
|
||||||
Burst int32 `json:"burst,omitempty"`
|
Burst int32 `json:"burst,omitempty"`
|
||||||
|
// KubeAPIQPS QPS to use while talking with kubernetes apiserver. (default 20)
|
||||||
|
KubeAPIQPS *resource.Quantity `json:"kubeAPIQPS,omitempty" flag:"kube-api-qps"`
|
||||||
|
// KubeAPIBurst Burst to use while talking with kubernetes apiserver. (default 30)
|
||||||
|
KubeAPIBurst *int32 `json:"kubeAPIBurst,omitempty" flag:"kube-api-burst"`
|
||||||
// AuthenticationKubeconfig is the path to an Authentication Kubeconfig
|
// AuthenticationKubeconfig is the path to an Authentication Kubeconfig
|
||||||
AuthenticationKubeconfig string `json:"authenticationKubeconfig,omitempty" flag:"authentication-kubeconfig"`
|
AuthenticationKubeconfig string `json:"authenticationKubeconfig,omitempty" flag:"authentication-kubeconfig"`
|
||||||
// AuthorizationKubeconfig is the path to an Authorization Kubeconfig
|
// AuthorizationKubeconfig is the path to an Authorization Kubeconfig
|
||||||
|
|
@ -755,6 +763,8 @@ type KubeSchedulerConfig struct {
|
||||||
|
|
||||||
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
||||||
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
||||||
|
// EnableContentionProfiling enables block profiling, if profiling is enabled
|
||||||
|
EnableContentionProfiling *bool `json:"enableContentionProfiling,omitempty" flag:"contention-profiling"`
|
||||||
// TLSCertFile is the file containing the TLS server certificate.
|
// TLSCertFile is the file containing the TLS server certificate.
|
||||||
TLSCertFile *string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"`
|
TLSCertFile *string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"`
|
||||||
// TLSPrivateKeyFile is the file containing the private key for the TLS server certificate.
|
// TLSPrivateKeyFile is the file containing the private key for the TLS server certificate.
|
||||||
|
|
|
||||||
|
|
@ -4849,6 +4849,7 @@ func autoConvert_v1alpha2_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(in *Ku
|
||||||
out.EventTTL = in.EventTTL
|
out.EventTTL = in.EventTTL
|
||||||
out.AuditDynamicConfiguration = in.AuditDynamicConfiguration
|
out.AuditDynamicConfiguration = in.AuditDynamicConfiguration
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.CorsAllowedOrigins = in.CorsAllowedOrigins
|
out.CorsAllowedOrigins = in.CorsAllowedOrigins
|
||||||
out.DefaultNotReadyTolerationSeconds = in.DefaultNotReadyTolerationSeconds
|
out.DefaultNotReadyTolerationSeconds = in.DefaultNotReadyTolerationSeconds
|
||||||
out.DefaultUnreachableTolerationSeconds = in.DefaultUnreachableTolerationSeconds
|
out.DefaultUnreachableTolerationSeconds = in.DefaultUnreachableTolerationSeconds
|
||||||
|
|
@ -4961,6 +4962,7 @@ func autoConvert_kops_KubeAPIServerConfig_To_v1alpha2_KubeAPIServerConfig(in *ko
|
||||||
out.EventTTL = in.EventTTL
|
out.EventTTL = in.EventTTL
|
||||||
out.AuditDynamicConfiguration = in.AuditDynamicConfiguration
|
out.AuditDynamicConfiguration = in.AuditDynamicConfiguration
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.CorsAllowedOrigins = in.CorsAllowedOrigins
|
out.CorsAllowedOrigins = in.CorsAllowedOrigins
|
||||||
out.DefaultNotReadyTolerationSeconds = in.DefaultNotReadyTolerationSeconds
|
out.DefaultNotReadyTolerationSeconds = in.DefaultNotReadyTolerationSeconds
|
||||||
out.DefaultUnreachableTolerationSeconds = in.DefaultUnreachableTolerationSeconds
|
out.DefaultUnreachableTolerationSeconds = in.DefaultUnreachableTolerationSeconds
|
||||||
|
|
@ -5035,6 +5037,7 @@ func autoConvert_v1alpha2_KubeControllerManagerConfig_To_kops_KubeControllerMana
|
||||||
out.EndpointUpdatesBatchPeriod = in.EndpointUpdatesBatchPeriod
|
out.EndpointUpdatesBatchPeriod = in.EndpointUpdatesBatchPeriod
|
||||||
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
|
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.EnableLeaderMigration = in.EnableLeaderMigration
|
out.EnableLeaderMigration = in.EnableLeaderMigration
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
@ -5107,6 +5110,7 @@ func autoConvert_kops_KubeControllerManagerConfig_To_v1alpha2_KubeControllerMana
|
||||||
out.EndpointUpdatesBatchPeriod = in.EndpointUpdatesBatchPeriod
|
out.EndpointUpdatesBatchPeriod = in.EndpointUpdatesBatchPeriod
|
||||||
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
|
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.EnableLeaderMigration = in.EnableLeaderMigration
|
out.EnableLeaderMigration = in.EnableLeaderMigration
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
@ -5261,10 +5265,13 @@ func autoConvert_v1alpha2_KubeSchedulerConfig_To_kops_KubeSchedulerConfig(in *Ku
|
||||||
out.MaxPersistentVolumes = in.MaxPersistentVolumes
|
out.MaxPersistentVolumes = in.MaxPersistentVolumes
|
||||||
out.Qps = in.Qps
|
out.Qps = in.Qps
|
||||||
out.Burst = in.Burst
|
out.Burst = in.Burst
|
||||||
|
out.KubeAPIQPS = in.KubeAPIQPS
|
||||||
|
out.KubeAPIBurst = in.KubeAPIBurst
|
||||||
out.AuthenticationKubeconfig = in.AuthenticationKubeconfig
|
out.AuthenticationKubeconfig = in.AuthenticationKubeconfig
|
||||||
out.AuthorizationKubeconfig = in.AuthorizationKubeconfig
|
out.AuthorizationKubeconfig = in.AuthorizationKubeconfig
|
||||||
out.AuthorizationAlwaysAllowPaths = in.AuthorizationAlwaysAllowPaths
|
out.AuthorizationAlwaysAllowPaths = in.AuthorizationAlwaysAllowPaths
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.TLSCertFile = in.TLSCertFile
|
out.TLSCertFile = in.TLSCertFile
|
||||||
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
|
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
|
||||||
return nil
|
return nil
|
||||||
|
|
@ -5294,10 +5301,13 @@ func autoConvert_kops_KubeSchedulerConfig_To_v1alpha2_KubeSchedulerConfig(in *ko
|
||||||
out.MaxPersistentVolumes = in.MaxPersistentVolumes
|
out.MaxPersistentVolumes = in.MaxPersistentVolumes
|
||||||
out.Qps = in.Qps
|
out.Qps = in.Qps
|
||||||
out.Burst = in.Burst
|
out.Burst = in.Burst
|
||||||
|
out.KubeAPIQPS = in.KubeAPIQPS
|
||||||
|
out.KubeAPIBurst = in.KubeAPIBurst
|
||||||
out.AuthenticationKubeconfig = in.AuthenticationKubeconfig
|
out.AuthenticationKubeconfig = in.AuthenticationKubeconfig
|
||||||
out.AuthorizationKubeconfig = in.AuthorizationKubeconfig
|
out.AuthorizationKubeconfig = in.AuthorizationKubeconfig
|
||||||
out.AuthorizationAlwaysAllowPaths = in.AuthorizationAlwaysAllowPaths
|
out.AuthorizationAlwaysAllowPaths = in.AuthorizationAlwaysAllowPaths
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.TLSCertFile = in.TLSCertFile
|
out.TLSCertFile = in.TLSCertFile
|
||||||
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
|
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
|
|
@ -3209,6 +3209,11 @@ func (in *KubeAPIServerConfig) DeepCopyInto(out *KubeAPIServerConfig) {
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
if in.EnableContentionProfiling != nil {
|
||||||
|
in, out := &in.EnableContentionProfiling, &out.EnableContentionProfiling
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.CorsAllowedOrigins != nil {
|
if in.CorsAllowedOrigins != nil {
|
||||||
in, out := &in.CorsAllowedOrigins, &out.CorsAllowedOrigins
|
in, out := &in.CorsAllowedOrigins, &out.CorsAllowedOrigins
|
||||||
*out = make([]string, len(*in))
|
*out = make([]string, len(*in))
|
||||||
|
|
@ -3437,6 +3442,11 @@ func (in *KubeControllerManagerConfig) DeepCopyInto(out *KubeControllerManagerCo
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
if in.EnableContentionProfiling != nil {
|
||||||
|
in, out := &in.EnableContentionProfiling, &out.EnableContentionProfiling
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.EnableLeaderMigration != nil {
|
if in.EnableLeaderMigration != nil {
|
||||||
in, out := &in.EnableLeaderMigration, &out.EnableLeaderMigration
|
in, out := &in.EnableLeaderMigration, &out.EnableLeaderMigration
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
|
|
@ -3641,6 +3651,16 @@ func (in *KubeSchedulerConfig) DeepCopyInto(out *KubeSchedulerConfig) {
|
||||||
x := (*in).DeepCopy()
|
x := (*in).DeepCopy()
|
||||||
*out = &x
|
*out = &x
|
||||||
}
|
}
|
||||||
|
if in.KubeAPIQPS != nil {
|
||||||
|
in, out := &in.KubeAPIQPS, &out.KubeAPIQPS
|
||||||
|
x := (*in).DeepCopy()
|
||||||
|
*out = &x
|
||||||
|
}
|
||||||
|
if in.KubeAPIBurst != nil {
|
||||||
|
in, out := &in.KubeAPIBurst, &out.KubeAPIBurst
|
||||||
|
*out = new(int32)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.AuthorizationAlwaysAllowPaths != nil {
|
if in.AuthorizationAlwaysAllowPaths != nil {
|
||||||
in, out := &in.AuthorizationAlwaysAllowPaths, &out.AuthorizationAlwaysAllowPaths
|
in, out := &in.AuthorizationAlwaysAllowPaths, &out.AuthorizationAlwaysAllowPaths
|
||||||
*out = make([]string, len(*in))
|
*out = make([]string, len(*in))
|
||||||
|
|
@ -3651,6 +3671,11 @@ func (in *KubeSchedulerConfig) DeepCopyInto(out *KubeSchedulerConfig) {
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
if in.EnableContentionProfiling != nil {
|
||||||
|
in, out := &in.EnableContentionProfiling, &out.EnableContentionProfiling
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.TLSCertFile != nil {
|
if in.TLSCertFile != nil {
|
||||||
in, out := &in.TLSCertFile, &out.TLSCertFile
|
in, out := &in.TLSCertFile, &out.TLSCertFile
|
||||||
*out = new(string)
|
*out = new(string)
|
||||||
|
|
|
||||||
|
|
@ -519,6 +519,8 @@ type KubeAPIServerConfig struct {
|
||||||
|
|
||||||
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
||||||
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
||||||
|
// EnableContentionProfiling enables block profiling, if profiling is enabled
|
||||||
|
EnableContentionProfiling *bool `json:"enableContentionProfiling,omitempty" flag:"contention-profiling"`
|
||||||
|
|
||||||
// CorsAllowedOrigins is a list of origins for CORS. An allowed origin can be a regular
|
// CorsAllowedOrigins is a list of origins for CORS. An allowed origin can be a regular
|
||||||
// expression to support subdomain matching. If this list is empty CORS will not be enabled.
|
// expression to support subdomain matching. If this list is empty CORS will not be enabled.
|
||||||
|
|
@ -668,6 +670,8 @@ type KubeControllerManagerConfig struct {
|
||||||
|
|
||||||
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
||||||
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
||||||
|
// EnableContentionProfiling enables block profiling, if profiling is enabled
|
||||||
|
EnableContentionProfiling *bool `json:"enableContentionProfiling,omitempty" flag:"contention-profiling"`
|
||||||
// EnableLeaderMigration enables controller leader migration.
|
// EnableLeaderMigration enables controller leader migration.
|
||||||
EnableLeaderMigration *bool `json:"enableLeaderMigration,omitempty" flag:"enable-leader-migration"`
|
EnableLeaderMigration *bool `json:"enableLeaderMigration,omitempty" flag:"enable-leader-migration"`
|
||||||
}
|
}
|
||||||
|
|
@ -737,6 +741,10 @@ type KubeSchedulerConfig struct {
|
||||||
Qps *resource.Quantity `json:"qps,omitempty"`
|
Qps *resource.Quantity `json:"qps,omitempty"`
|
||||||
// Burst sets the maximum qps to send to apiserver after the burst quota is exhausted
|
// Burst sets the maximum qps to send to apiserver after the burst quota is exhausted
|
||||||
Burst int32 `json:"burst,omitempty"`
|
Burst int32 `json:"burst,omitempty"`
|
||||||
|
// KubeAPIQPS QPS to use while talking with kubernetes apiserver. (default 20)
|
||||||
|
KubeAPIQPS *resource.Quantity `json:"kubeAPIQPS,omitempty" flag:"kube-api-qps"`
|
||||||
|
// KubeAPIBurst Burst to use while talking with kubernetes apiserver. (default 30)
|
||||||
|
KubeAPIBurst *int32 `json:"kubeAPIBurst,omitempty" flag:"kube-api-burst"`
|
||||||
// AuthenticationKubeconfig is the path to an Authentication Kubeconfig
|
// AuthenticationKubeconfig is the path to an Authentication Kubeconfig
|
||||||
AuthenticationKubeconfig string `json:"authenticationKubeconfig,omitempty" flag:"authentication-kubeconfig"`
|
AuthenticationKubeconfig string `json:"authenticationKubeconfig,omitempty" flag:"authentication-kubeconfig"`
|
||||||
// AuthorizationKubeconfig is the path to an Authorization Kubeconfig
|
// AuthorizationKubeconfig is the path to an Authorization Kubeconfig
|
||||||
|
|
@ -746,6 +754,8 @@ type KubeSchedulerConfig struct {
|
||||||
|
|
||||||
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
// EnableProfiling enables profiling via web interface host:port/debug/pprof/
|
||||||
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
|
||||||
|
// EnableContentionProfiling enables block profiling, if profiling is enabled
|
||||||
|
EnableContentionProfiling *bool `json:"enableContentionProfiling,omitempty" flag:"contention-profiling"`
|
||||||
// TLSCertFile is the file containing the TLS server certificate.
|
// TLSCertFile is the file containing the TLS server certificate.
|
||||||
TLSCertFile *string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"`
|
TLSCertFile *string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"`
|
||||||
// TLSPrivateKeyFile is the file containing the private key for the TLS server certificate.
|
// TLSPrivateKeyFile is the file containing the private key for the TLS server certificate.
|
||||||
|
|
|
||||||
|
|
@ -5242,6 +5242,7 @@ func autoConvert_v1alpha3_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(in *Ku
|
||||||
out.EventTTL = in.EventTTL
|
out.EventTTL = in.EventTTL
|
||||||
out.AuditDynamicConfiguration = in.AuditDynamicConfiguration
|
out.AuditDynamicConfiguration = in.AuditDynamicConfiguration
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.CorsAllowedOrigins = in.CorsAllowedOrigins
|
out.CorsAllowedOrigins = in.CorsAllowedOrigins
|
||||||
out.DefaultNotReadyTolerationSeconds = in.DefaultNotReadyTolerationSeconds
|
out.DefaultNotReadyTolerationSeconds = in.DefaultNotReadyTolerationSeconds
|
||||||
out.DefaultUnreachableTolerationSeconds = in.DefaultUnreachableTolerationSeconds
|
out.DefaultUnreachableTolerationSeconds = in.DefaultUnreachableTolerationSeconds
|
||||||
|
|
@ -5354,6 +5355,7 @@ func autoConvert_kops_KubeAPIServerConfig_To_v1alpha3_KubeAPIServerConfig(in *ko
|
||||||
out.EventTTL = in.EventTTL
|
out.EventTTL = in.EventTTL
|
||||||
out.AuditDynamicConfiguration = in.AuditDynamicConfiguration
|
out.AuditDynamicConfiguration = in.AuditDynamicConfiguration
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.CorsAllowedOrigins = in.CorsAllowedOrigins
|
out.CorsAllowedOrigins = in.CorsAllowedOrigins
|
||||||
out.DefaultNotReadyTolerationSeconds = in.DefaultNotReadyTolerationSeconds
|
out.DefaultNotReadyTolerationSeconds = in.DefaultNotReadyTolerationSeconds
|
||||||
out.DefaultUnreachableTolerationSeconds = in.DefaultUnreachableTolerationSeconds
|
out.DefaultUnreachableTolerationSeconds = in.DefaultUnreachableTolerationSeconds
|
||||||
|
|
@ -5428,6 +5430,7 @@ func autoConvert_v1alpha3_KubeControllerManagerConfig_To_kops_KubeControllerMana
|
||||||
out.EndpointUpdatesBatchPeriod = in.EndpointUpdatesBatchPeriod
|
out.EndpointUpdatesBatchPeriod = in.EndpointUpdatesBatchPeriod
|
||||||
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
|
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.EnableLeaderMigration = in.EnableLeaderMigration
|
out.EnableLeaderMigration = in.EnableLeaderMigration
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
@ -5500,6 +5503,7 @@ func autoConvert_kops_KubeControllerManagerConfig_To_v1alpha3_KubeControllerMana
|
||||||
out.EndpointUpdatesBatchPeriod = in.EndpointUpdatesBatchPeriod
|
out.EndpointUpdatesBatchPeriod = in.EndpointUpdatesBatchPeriod
|
||||||
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
|
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.EnableLeaderMigration = in.EnableLeaderMigration
|
out.EnableLeaderMigration = in.EnableLeaderMigration
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
@ -5652,10 +5656,13 @@ func autoConvert_v1alpha3_KubeSchedulerConfig_To_kops_KubeSchedulerConfig(in *Ku
|
||||||
out.MaxPersistentVolumes = in.MaxPersistentVolumes
|
out.MaxPersistentVolumes = in.MaxPersistentVolumes
|
||||||
out.Qps = in.Qps
|
out.Qps = in.Qps
|
||||||
out.Burst = in.Burst
|
out.Burst = in.Burst
|
||||||
|
out.KubeAPIQPS = in.KubeAPIQPS
|
||||||
|
out.KubeAPIBurst = in.KubeAPIBurst
|
||||||
out.AuthenticationKubeconfig = in.AuthenticationKubeconfig
|
out.AuthenticationKubeconfig = in.AuthenticationKubeconfig
|
||||||
out.AuthorizationKubeconfig = in.AuthorizationKubeconfig
|
out.AuthorizationKubeconfig = in.AuthorizationKubeconfig
|
||||||
out.AuthorizationAlwaysAllowPaths = in.AuthorizationAlwaysAllowPaths
|
out.AuthorizationAlwaysAllowPaths = in.AuthorizationAlwaysAllowPaths
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.TLSCertFile = in.TLSCertFile
|
out.TLSCertFile = in.TLSCertFile
|
||||||
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
|
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
|
||||||
return nil
|
return nil
|
||||||
|
|
@ -5685,10 +5692,13 @@ func autoConvert_kops_KubeSchedulerConfig_To_v1alpha3_KubeSchedulerConfig(in *ko
|
||||||
out.MaxPersistentVolumes = in.MaxPersistentVolumes
|
out.MaxPersistentVolumes = in.MaxPersistentVolumes
|
||||||
out.Qps = in.Qps
|
out.Qps = in.Qps
|
||||||
out.Burst = in.Burst
|
out.Burst = in.Burst
|
||||||
|
out.KubeAPIQPS = in.KubeAPIQPS
|
||||||
|
out.KubeAPIBurst = in.KubeAPIBurst
|
||||||
out.AuthenticationKubeconfig = in.AuthenticationKubeconfig
|
out.AuthenticationKubeconfig = in.AuthenticationKubeconfig
|
||||||
out.AuthorizationKubeconfig = in.AuthorizationKubeconfig
|
out.AuthorizationKubeconfig = in.AuthorizationKubeconfig
|
||||||
out.AuthorizationAlwaysAllowPaths = in.AuthorizationAlwaysAllowPaths
|
out.AuthorizationAlwaysAllowPaths = in.AuthorizationAlwaysAllowPaths
|
||||||
out.EnableProfiling = in.EnableProfiling
|
out.EnableProfiling = in.EnableProfiling
|
||||||
|
out.EnableContentionProfiling = in.EnableContentionProfiling
|
||||||
out.TLSCertFile = in.TLSCertFile
|
out.TLSCertFile = in.TLSCertFile
|
||||||
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
|
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
|
|
@ -3178,6 +3178,11 @@ func (in *KubeAPIServerConfig) DeepCopyInto(out *KubeAPIServerConfig) {
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
if in.EnableContentionProfiling != nil {
|
||||||
|
in, out := &in.EnableContentionProfiling, &out.EnableContentionProfiling
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.CorsAllowedOrigins != nil {
|
if in.CorsAllowedOrigins != nil {
|
||||||
in, out := &in.CorsAllowedOrigins, &out.CorsAllowedOrigins
|
in, out := &in.CorsAllowedOrigins, &out.CorsAllowedOrigins
|
||||||
*out = make([]string, len(*in))
|
*out = make([]string, len(*in))
|
||||||
|
|
@ -3406,6 +3411,11 @@ func (in *KubeControllerManagerConfig) DeepCopyInto(out *KubeControllerManagerCo
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
if in.EnableContentionProfiling != nil {
|
||||||
|
in, out := &in.EnableContentionProfiling, &out.EnableContentionProfiling
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.EnableLeaderMigration != nil {
|
if in.EnableLeaderMigration != nil {
|
||||||
in, out := &in.EnableLeaderMigration, &out.EnableLeaderMigration
|
in, out := &in.EnableLeaderMigration, &out.EnableLeaderMigration
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
|
|
@ -3610,6 +3620,16 @@ func (in *KubeSchedulerConfig) DeepCopyInto(out *KubeSchedulerConfig) {
|
||||||
x := (*in).DeepCopy()
|
x := (*in).DeepCopy()
|
||||||
*out = &x
|
*out = &x
|
||||||
}
|
}
|
||||||
|
if in.KubeAPIQPS != nil {
|
||||||
|
in, out := &in.KubeAPIQPS, &out.KubeAPIQPS
|
||||||
|
x := (*in).DeepCopy()
|
||||||
|
*out = &x
|
||||||
|
}
|
||||||
|
if in.KubeAPIBurst != nil {
|
||||||
|
in, out := &in.KubeAPIBurst, &out.KubeAPIBurst
|
||||||
|
*out = new(int32)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.AuthorizationAlwaysAllowPaths != nil {
|
if in.AuthorizationAlwaysAllowPaths != nil {
|
||||||
in, out := &in.AuthorizationAlwaysAllowPaths, &out.AuthorizationAlwaysAllowPaths
|
in, out := &in.AuthorizationAlwaysAllowPaths, &out.AuthorizationAlwaysAllowPaths
|
||||||
*out = make([]string, len(*in))
|
*out = make([]string, len(*in))
|
||||||
|
|
@ -3620,6 +3640,11 @@ func (in *KubeSchedulerConfig) DeepCopyInto(out *KubeSchedulerConfig) {
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
if in.EnableContentionProfiling != nil {
|
||||||
|
in, out := &in.EnableContentionProfiling, &out.EnableContentionProfiling
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.TLSCertFile != nil {
|
if in.TLSCertFile != nil {
|
||||||
in, out := &in.TLSCertFile, &out.TLSCertFile
|
in, out := &in.TLSCertFile, &out.TLSCertFile
|
||||||
*out = new(string)
|
*out = new(string)
|
||||||
|
|
|
||||||
|
|
@ -3357,6 +3357,11 @@ func (in *KubeAPIServerConfig) DeepCopyInto(out *KubeAPIServerConfig) {
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
if in.EnableContentionProfiling != nil {
|
||||||
|
in, out := &in.EnableContentionProfiling, &out.EnableContentionProfiling
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.CorsAllowedOrigins != nil {
|
if in.CorsAllowedOrigins != nil {
|
||||||
in, out := &in.CorsAllowedOrigins, &out.CorsAllowedOrigins
|
in, out := &in.CorsAllowedOrigins, &out.CorsAllowedOrigins
|
||||||
*out = make([]string, len(*in))
|
*out = make([]string, len(*in))
|
||||||
|
|
@ -3585,6 +3590,11 @@ func (in *KubeControllerManagerConfig) DeepCopyInto(out *KubeControllerManagerCo
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
if in.EnableContentionProfiling != nil {
|
||||||
|
in, out := &in.EnableContentionProfiling, &out.EnableContentionProfiling
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.EnableLeaderMigration != nil {
|
if in.EnableLeaderMigration != nil {
|
||||||
in, out := &in.EnableLeaderMigration, &out.EnableLeaderMigration
|
in, out := &in.EnableLeaderMigration, &out.EnableLeaderMigration
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
|
|
@ -3789,6 +3799,16 @@ func (in *KubeSchedulerConfig) DeepCopyInto(out *KubeSchedulerConfig) {
|
||||||
x := (*in).DeepCopy()
|
x := (*in).DeepCopy()
|
||||||
*out = &x
|
*out = &x
|
||||||
}
|
}
|
||||||
|
if in.KubeAPIQPS != nil {
|
||||||
|
in, out := &in.KubeAPIQPS, &out.KubeAPIQPS
|
||||||
|
x := (*in).DeepCopy()
|
||||||
|
*out = &x
|
||||||
|
}
|
||||||
|
if in.KubeAPIBurst != nil {
|
||||||
|
in, out := &in.KubeAPIBurst, &out.KubeAPIBurst
|
||||||
|
*out = new(int32)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.AuthorizationAlwaysAllowPaths != nil {
|
if in.AuthorizationAlwaysAllowPaths != nil {
|
||||||
in, out := &in.AuthorizationAlwaysAllowPaths, &out.AuthorizationAlwaysAllowPaths
|
in, out := &in.AuthorizationAlwaysAllowPaths, &out.AuthorizationAlwaysAllowPaths
|
||||||
*out = make([]string, len(*in))
|
*out = make([]string, len(*in))
|
||||||
|
|
@ -3799,6 +3819,11 @@ func (in *KubeSchedulerConfig) DeepCopyInto(out *KubeSchedulerConfig) {
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
if in.EnableContentionProfiling != nil {
|
||||||
|
in, out := &in.EnableContentionProfiling, &out.EnableContentionProfiling
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.TLSCertFile != nil {
|
if in.TLSCertFile != nil {
|
||||||
in, out := &in.TLSCertFile, &out.TLSCertFile
|
in, out := &in.TLSCertFile, &out.TLSCertFile
|
||||||
*out = new(string)
|
*out = new(string)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue