Skip to content

Commit

Permalink
Rollback #849[Use protobufs for communication with apiserver]
Browse files Browse the repository at this point in the history
  • Loading branch information
skmatti authored and Satish Matti committed Mar 11, 2020
1 parent 274e02e commit 23d6e20
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/glbc/app/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,6 @@ const (

// NewKubeConfig returns a Kubernetes client config given the command line settings.
func NewKubeConfig() (*rest.Config, error) {
config, err := newKubeConfig()
if err != nil {
return nil, err
}
// Use protobufs for communication with apiserver
config.ContentType = "application/vnd.kubernetes.protobuf"
return config, nil
}

func newKubeConfig() (*rest.Config, error) {
if flags.F.InCluster {
klog.V(0).Infof("Using in cluster configuration")
return rest.InClusterConfig()
Expand Down

0 comments on commit 23d6e20

Please sign in to comment.