Skip to content

Commit 99dd6d7

Browse files
committed
switch to hyperkube
1 parent a70f279 commit 99dd6d7

File tree

9 files changed

+2
-293
lines changed

9 files changed

+2
-293
lines changed

hack/lib/constants.sh

+1-11
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ readonly OS_CROSS_COMPILE_TARGETS=(
4747
cmd/oc
4848
cmd/kubefed
4949
cmd/template-service-broker
50+
vendor/k8s.io/kubernetes/cmd/hyperkube
5051
)
5152
readonly OS_CROSS_COMPILE_BINARIES=("${OS_CROSS_COMPILE_TARGETS[@]##*/}")
5253

@@ -77,20 +78,9 @@ readonly OPENSHIFT_BINARY_SYMLINKS=(
7778
oadm
7879
osadm
7980
kubectl
80-
kubernetes
81-
kubelet
82-
kube-proxy
83-
kube-apiserver
84-
kube-controller-manager
85-
kube-scheduler
8681
)
8782
readonly OPENSHIFT_BINARY_COPY=(
8883
oadm
89-
kubelet
90-
kube-proxy
91-
kube-apiserver
92-
kube-controller-manager
93-
kube-scheduler
9484
)
9585
readonly OC_BINARY_COPY=(
9686
kubectl

origin.spec

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

329329
for cmd in \
330-
kube-apiserver \
331-
kube-controller-manager \
332-
kube-proxy \
333-
kube-scheduler \
334-
kubelet \
335-
kubernetes \
336330
oadm \
337331
openshift-deploy \
338332
openshift-docker-build \
@@ -427,12 +421,7 @@ install -p -m 755 contrib/migration/* %{buildroot}%{_datadir}/%{name}/migration/
427421
%doc README.md
428422
%license LICENSE
429423
%{_bindir}/openshift
430-
%{_bindir}/kube-apiserver
431-
%{_bindir}/kube-controller-manager
432-
%{_bindir}/kube-proxy
433-
%{_bindir}/kube-scheduler
434-
%{_bindir}/kubelet
435-
%{_bindir}/kubernetes
424+
%{_bindir}/hyperkube
436425
%{_bindir}/oadm
437426
%{_bindir}/openshift-deploy
438427
%{_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"
@@ -83,18 +81,6 @@ func CommandFor(basename string) *cobra.Command {
8381
cmd = admin.NewCommandAdmin(basename, basename, in, out, errout)
8482
case "kubectl":
8583
cmd = cli.NewCmdKubectl(basename, out)
86-
case "kube-apiserver":
87-
cmd = kubernetes.NewAPIServerCommand(basename, basename, out)
88-
case "kube-controller-manager":
89-
cmd = kubernetes.NewControllersCommand(basename, basename, out)
90-
case "kubelet":
91-
cmd = kubernetes.NewKubeletCommand(basename, basename, out)
92-
case "kube-proxy":
93-
cmd = proxyapp.NewProxyCommand()
94-
case "kube-scheduler":
95-
cmd = kubernetes.NewSchedulerCommand(basename, basename, out)
96-
case "kubernetes":
97-
cmd = kubernetes.NewCommand(basename, basename, out, errout)
9884
case "origin":
9985
cmd = NewCommandOpenShift(basename)
10086
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

-56
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)