Skip to content

Commit

Permalink
Merge branch 'new-cluster-tls-api' of https://github.com/weekface/tid…
Browse files Browse the repository at this point in the history
…b-operator into new-cluster-tls-api
  • Loading branch information
weekface committed Mar 6, 2020
2 parents 6ebeab6 + e4597a3 commit e3bd76f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions pkg/controller/tidb_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ import (
"crypto/x509"
"encoding/json"
"fmt"
"github.com/pingcap/tidb-operator/pkg/apis/pingcap/v1alpha1"
"github.com/pingcap/tidb-operator/pkg/httputil"
"github.com/pingcap/tidb-operator/pkg/util"
"github.com/pingcap/tidb/config"
"io/ioutil"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"net/http"
"time"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/pingcap/tidb-operator/pkg/apis/pingcap/v1alpha1"
"github.com/pingcap/tidb-operator/pkg/httputil"
"github.com/pingcap/tidb/config"
)

const (
Expand All @@ -54,12 +54,12 @@ type TiDBControlInterface interface {
// defaultTiDBControl is default implementation of TiDBControlInterface.
type defaultTiDBControl struct {
httpClient *http.Client
kubeCli kubernetes.Interface
kubeCli kubernetes.Interface
}

// NewDefaultTiDBControl returns a defaultTiDBControl instance
func NewDefaultTiDBControl(kubeCli kubernetes.Interface) TiDBControlInterface {
return &defaultTiDBControl{httpClient: &http.Client{Timeout: timeout}, kubeCli:kubeCli}
return &defaultTiDBControl{httpClient: &http.Client{Timeout: timeout}, kubeCli: kubeCli}
}

func (tdc *defaultTiDBControl) useTLSHTTPClient(tc *v1alpha1.TidbCluster) error {
Expand Down
6 changes: 3 additions & 3 deletions pkg/monitor/monitor/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ package monitor

import (
"github.com/pingcap/tidb-operator/pkg/util"
"path"
"time"
corev1 "k8s.io/api/core/v1"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/config"
"gopkg.in/yaml.v2"
corev1 "k8s.io/api/core/v1"
"k8s.io/klog"
"path"
"time"
)

const (
Expand Down
1 change: 0 additions & 1 deletion pkg/util/crypto/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,3 @@ func ReadCACerts() (*x509.CertPool, error) {
}
return rootCAs, nil
}

0 comments on commit e3bd76f

Please sign in to comment.