Skip to content

Commit 3dd4f26

Browse files
committed
MFOJTIK: move openshift start etcd to avoid dep from hypershift
1 parent 6678a48 commit 3dd4f26

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

cmd/hypershift/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import (
1717
"github.com/openshift/library-go/pkg/serviceability"
1818
"github.com/openshift/origin/pkg/cmd/openshift-apiserver"
1919
"github.com/openshift/origin/pkg/cmd/openshift-controller-manager"
20+
"github.com/openshift/origin/pkg/cmd/openshift-etcd"
2021
"github.com/openshift/origin/pkg/cmd/openshift-experimental"
2122
"github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver"
22-
"github.com/openshift/origin/pkg/cmd/server/start"
2323
"github.com/openshift/origin/pkg/version"
2424
)
2525

@@ -55,7 +55,7 @@ func NewHyperShiftCommand() *cobra.Command {
5555
},
5656
}
5757

58-
startEtcd, _ := start.NewCommandStartEtcdServer(start.RecommendedStartEtcdServerName, "hypershift", os.Stdout, os.Stderr)
58+
startEtcd, _ := openshift_etcd.NewCommandStartEtcdServer(openshift_etcd.RecommendedStartEtcdServerName, "hypershift", os.Stdout, os.Stderr)
5959
startEtcd.Deprecated = "will be removed in 3.10"
6060
startEtcd.Hidden = true
6161
cmd.AddCommand(startEtcd)

pkg/cmd/server/start/start_etcd.go renamed to pkg/cmd/openshift-etcd/start_etcd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package start
1+
package openshift_etcd
22

33
import (
44
"errors"

pkg/cmd/server/start/start_allinone.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"k8s.io/kubernetes/pkg/master/ports"
2323

2424
"github.com/openshift/library-go/pkg/crypto"
25+
"github.com/openshift/origin/pkg/cmd/openshift-etcd"
2526
"github.com/openshift/origin/pkg/cmd/server/admin"
2627
configapi "github.com/openshift/origin/pkg/cmd/server/apis/config"
2728
"github.com/openshift/origin/pkg/cmd/server/origin"
@@ -122,7 +123,7 @@ func NewCommandStartAllInOne(basename string, out, errout io.Writer, stopCh <-ch
122123
startMaster, _ := NewCommandStartMaster(basename, out, errout)
123124
startNode, _ := NewCommandStartNode(basename, out, errout, stopCh)
124125
startNodeNetwork, _ := NewCommandStartNetwork(basename, out, errout)
125-
startEtcdServer, _ := NewCommandStartEtcdServer(RecommendedStartEtcdServerName, basename, out, errout)
126+
startEtcdServer, _ := openshift_etcd.NewCommandStartEtcdServer(RecommendedStartEtcdServerName, basename, out, errout)
126127
startTSBServer := tsbcmd.NewCommandStartTemplateServiceBrokerServer(out, errout, wait.NeverStop)
127128
cmds.AddCommand(startMaster)
128129
cmds.AddCommand(startNode)

0 commit comments

Comments
 (0)