Skip to content

Commit 1f270ca

Browse files
Merge pull request #17369 from deads2k/bin-06-hyper
Automatic merge from submit-queue. switch to hyperkube and remove renames This publishes hyperkube and switches to use it instead of renaming the openshift binary.
2 parents d58d79f + 57a5bef commit 1f270ca

19 files changed

+2
-1976
lines changed

contrib/completions/bash/openshift

-830
Large diffs are not rendered by default.

contrib/completions/zsh/openshift

-830
Large diffs are not rendered by default.

docs/man/man1/.files_generated_openshift

-6
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,6 @@ openshift-infra-sti-build.1
380380
openshift-infra.1
381381
openshift-options.1
382382
openshift-start-etcd.1
383-
openshift-start-kubernetes-apiserver.1
384-
openshift-start-kubernetes-controller-manager.1
385-
openshift-start-kubernetes-kube-proxy.1
386-
openshift-start-kubernetes-kubelet.1
387-
openshift-start-kubernetes-scheduler.1
388-
openshift-start-kubernetes.1
389383
openshift-start-master-api.1
390384
openshift-start-master-controllers.1
391385
openshift-start-master.1

docs/man/man1/openshift-start-kubernetes-apiserver.1

-3
This file was deleted.

docs/man/man1/openshift-start-kubernetes-controller-manager.1

-3
This file was deleted.

docs/man/man1/openshift-start-kubernetes-kube-proxy.1

-3
This file was deleted.

docs/man/man1/openshift-start-kubernetes-kubelet.1

-3
This file was deleted.

docs/man/man1/openshift-start-kubernetes-scheduler.1

-3
This file was deleted.

docs/man/man1/openshift-start-kubernetes.1

-3
This file was deleted.

hack/lib/constants.sh

+1-11
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ readonly OS_CROSS_COMPILE_TARGETS=(
4545
cmd/oc
4646
cmd/kubefed
4747
cmd/template-service-broker
48+
vendor/k8s.io/kubernetes/cmd/hyperkube
4849
)
4950
readonly OS_CROSS_COMPILE_BINARIES=("${OS_CROSS_COMPILE_TARGETS[@]##*/}")
5051

@@ -74,20 +75,9 @@ readonly OPENSHIFT_BINARY_SYMLINKS=(
7475
osc
7576
oadm
7677
osadm
77-
kubernetes
78-
kubelet
79-
kube-proxy
80-
kube-apiserver
81-
kube-controller-manager
82-
kube-scheduler
8378
)
8479
readonly OPENSHIFT_BINARY_COPY=(
8580
oadm
86-
kubelet
87-
kube-proxy
88-
kube-apiserver
89-
kube-controller-manager
90-
kube-scheduler
9181
)
9282
readonly OC_BINARY_COPY=(
9383
kubectl

origin.spec

+1-12
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,6 @@ install -d -m 0755 %{buildroot}%{_unitdir}
321321
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
322322

323323
for cmd in \
324-
kube-apiserver \
325-
kube-controller-manager \
326-
kube-proxy \
327-
kube-scheduler \
328-
kubelet \
329-
kubernetes \
330324
oadm \
331325
openshift-deploy \
332326
openshift-docker-build \
@@ -421,12 +415,7 @@ install -p -m 755 contrib/migration/* %{buildroot}%{_datadir}/%{name}/migration/
421415
%doc README.md
422416
%license LICENSE
423417
%{_bindir}/openshift
424-
%{_bindir}/kube-apiserver
425-
%{_bindir}/kube-controller-manager
426-
%{_bindir}/kube-proxy
427-
%{_bindir}/kube-scheduler
428-
%{_bindir}/kubelet
429-
%{_bindir}/kubernetes
418+
%{_bindir}/hyperkube
430419
%{_bindir}/oadm
431420
%{_bindir}/openshift-deploy
432421
%{_bindir}/openshift-f5-router

pkg/cmd/openshift/openshift.go

-14
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/spf13/cobra"
1010
"github.com/spf13/pflag"
1111

12-
proxyapp "k8s.io/kubernetes/cmd/kube-proxy/app"
1312
ktemplates "k8s.io/kubernetes/pkg/kubectl/cmd/templates"
1413
kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
1514

@@ -19,7 +18,6 @@ import (
1918
irouter "github.com/openshift/origin/pkg/cmd/infra/router"
2019
"github.com/openshift/origin/pkg/cmd/recycle"
2120
"github.com/openshift/origin/pkg/cmd/server/start"
22-
"github.com/openshift/origin/pkg/cmd/server/start/kubernetes"
2321
"github.com/openshift/origin/pkg/cmd/templates"
2422
cmdutil "github.com/openshift/origin/pkg/cmd/util"
2523
"github.com/openshift/origin/pkg/cmd/util/clientcmd"
@@ -81,18 +79,6 @@ func CommandFor(basename string) *cobra.Command {
8179
cmd = cli.NewCommandCLI(basename, basename, in, out, errout)
8280
case "oadm", "osadm":
8381
cmd = admin.NewCommandAdmin(basename, basename, in, out, errout)
84-
case "kube-apiserver":
85-
cmd = kubernetes.NewAPIServerCommand(basename, basename, out)
86-
case "kube-controller-manager":
87-
cmd = kubernetes.NewControllersCommand(basename, basename, out)
88-
case "kubelet":
89-
cmd = kubernetes.NewKubeletCommand(basename, basename, out)
90-
case "kube-proxy":
91-
cmd = proxyapp.NewProxyCommand()
92-
case "kube-scheduler":
93-
cmd = kubernetes.NewSchedulerCommand(basename, basename, out)
94-
case "kubernetes":
95-
cmd = kubernetes.NewCommand(basename, basename, out, errout)
9682
case "origin":
9783
cmd = NewCommandOpenShift(basename)
9884
default:

pkg/cmd/server/start/kubernetes/apiserver.go

-51
This file was deleted.

pkg/cmd/server/start/kubernetes/controllers.go

-49
This file was deleted.

pkg/cmd/server/start/kubernetes/kubelet.go

-48
This file was deleted.

pkg/cmd/server/start/kubernetes/kubernetes.go

-52
This file was deleted.

pkg/cmd/server/start/kubernetes/scheduler.go

-48
This file was deleted.

pkg/cmd/server/start/start_allinone.go

-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
"github.com/openshift/origin/pkg/cmd/server/admin"
2727
configapi "github.com/openshift/origin/pkg/cmd/server/api"
2828
"github.com/openshift/origin/pkg/cmd/server/crypto"
29-
"github.com/openshift/origin/pkg/cmd/server/start/kubernetes"
3029
cmdutil "github.com/openshift/origin/pkg/cmd/util"
3130
tsbcmd "github.com/openshift/origin/pkg/templateservicebroker/cmd/server"
3231
"k8s.io/apimachinery/pkg/util/wait"
@@ -133,9 +132,6 @@ func NewCommandStartAllInOne(basename string, out, errout io.Writer) (*cobra.Com
133132
cmds.AddCommand(startEtcdServer)
134133
cmds.AddCommand(startTSBServer)
135134

136-
startKube := kubernetes.NewCommand("kubernetes", basename, out, errout)
137-
cmds.AddCommand(startKube)
138-
139135
// autocompletion hints
140136
cmds.MarkFlagFilename("write-config")
141137
cmds.MarkFlagFilename("master-config", "yaml", "yml")

0 commit comments

Comments
 (0)