Skip to content

Commit

Permalink
More patches for component config.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorenc committed Dec 19, 2017
1 parent eb7e6f5 commit 9e6bce4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
29 changes: 22 additions & 7 deletions hack/kube-proxy-patch.diff
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
diff --git a/vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server_others.go b/vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server_others.go
index 380e83e2a..51bb09fd0 100644
--- a/vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server_others.go
+++ b/vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server_others.go
@@ -72,7 +72,7 @@ func newProxyServer(
if c, err := configz.New(proxyconfigapi.GroupName); err == nil {
diff --git a/vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server.go b/vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server.go
index 2f9ea2eac..35a7c14e5 100644
--- a/vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server.go
+++ b/vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server.go
@@ -318,6 +318,10 @@ func (o *Options) ApplyDefaults(in *kubeproxyconfig.KubeProxyConfiguration) (*ku
return out, nil
}

+func (o *Options) SetConfig(in *kubeproxyconfig.KubeProxyConfiguration) {
+ o.config = in
+}
+
// NewProxyCommand creates a *cobra.Command object with default parameters
func NewProxyCommand() *cobra.Command {
opts := NewOptions()
diff --git a/vendor/k8s.io/kubernetes/plugin/cmd/kube-scheduler/app/server.go b/vendor/k8s.io/kubernetes/plugin/cmd/kube-scheduler/app/server.go
index 93982f898..a116da41f 100644
--- a/vendor/k8s.io/kubernetes/plugin/cmd/kube-scheduler/app/server.go
+++ b/vendor/k8s.io/kubernetes/plugin/cmd/kube-scheduler/app/server.go
@@ -380,7 +380,7 @@ func NewSchedulerServer(config *componentconfig.KubeSchedulerConfiguration, mast
if c, err := configz.New("componentconfig"); err == nil {
c.Set(config)
} else {
- return nil, fmt.Errorf("unable to register configz: %s", err)
+ glog.Warningf("unable to register configz: %s", err)
}

protocol := utiliptables.ProtocolIpv4
// Prepare some Kube clients.
4 changes: 4 additions & 0 deletions vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9e6bce4

Please sign in to comment.