mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-11 21:32:37 +00:00
Update loader.go
This commit is contained in:
parent
4a8f2c156d
commit
8caea29012
@ -13,12 +13,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func NewFromInCluster(errOut chan error) (*Resolver, error) {
|
func NewFromInCluster(errOut chan error) (*Resolver, error) {
|
||||||
// creates the in-cluster config
|
|
||||||
config, err := restclient.InClusterConfig()
|
config, err := restclient.InClusterConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
// creates the clientset
|
|
||||||
clientset, err := kubernetes.NewForConfig(config)
|
clientset, err := kubernetes.NewForConfig(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user