Skip to content

Commit

Permalink
Fixed typos in storer_k8s file.
Browse files Browse the repository at this point in the history
* Fixed variable from createTPR to createCRD.
* Fixed check for general clientset.

Change-Id: I09cae96ec5c2db27c6395e6690ca8fb10b29c6ed
  • Loading branch information
vrovachev committed Dec 13, 2017
1 parent a965c50 commit bd27481
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/utils/storer_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type k8sAgentStorage struct {
ExtensionsClientset ext_client.Clientset
}

func connect2k8s(createTPR bool) (Proxy, ext_client.Clientset, error) {
func connect2k8s(createCRD bool) (Proxy, ext_client.Clientset, error) {
var err error
var clientset *kubernetes.Clientset

Expand All @@ -49,13 +49,17 @@ func connect2k8s(createTPR bool) (Proxy, ext_client.Clientset, error) {
}

clientset, err = proxy.SetupClientSet(config)
if err != nil {
glog.Error(err)
return nil, nil, err
}
apiextensionsclientset, err := apiextensionsclient.NewForConfig(config)
if err != nil {
glog.Error(err)
return nil, nil, err
}

if !createTPR {
if !createCRD {
return proxy, nil, err
}

Expand Down

0 comments on commit bd27481

Please sign in to comment.