Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecsy committed Apr 16, 2019
1 parent cac8ef1 commit 4428075
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions cmd/pke/app/phases/kubeadm/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@
package node

import (
"context"
"fmt"
"io"
"os"
"path/filepath"
"text/template"

"github.com/banzaicloud/pke/.gen/pipeline"
"github.com/banzaicloud/pke/cmd/pke/app/constants"
"github.com/banzaicloud/pke/cmd/pke/app/phases"
"github.com/banzaicloud/pke/cmd/pke/app/phases/kubeadm"
Expand Down Expand Up @@ -234,29 +232,6 @@ func (n *Node) workerBootstrapParameters(cmd *cobra.Command) (err error) {
return
}

func pipelineJoinArgs(cmd *cobra.Command) (apiServerHostPort, kubeadmToken, caCertHash string, err error) {
if !pipelineutil.Enabled(cmd) {
return
}
endpoint, token, orgID, clusterID, err := pipelineutil.CommandArgs(cmd)
if err != nil {
return
}

// Pipeline client.
c := pipelineutil.Client(os.Stdout, endpoint, token)

var b pipeline.GetClusterBootstrapResponse
b, _, err = c.ClustersApi.GetClusterBootstrap(context.Background(), orgID, clusterID)
if err != nil {
return
}
apiServerHostPort = b.MasterAddress
kubeadmToken = b.Token
caCertHash = b.DiscoveryTokenCaCertHash
return
}

func (n *Node) install(out io.Writer) error {
// write kubeadm config
if err := n.writeKubeadmConfig(out, kubeadmConfig); err != nil {
Expand Down

0 comments on commit 4428075

Please sign in to comment.