Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jeev B <jeevb@users.noreply.github.com>
  • Loading branch information
jeevb committed Apr 6, 2023
1 parent f4fb1bb commit 8cc786e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/containerwatcher/kubeapi_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ func (k kubeAPIWatcher) WaitToExit(ctx context.Context) error {
func NewKubeAPIWatcher(_ context.Context, clientConfig clientcmd.ClientConfig, info ContainerInformation) (Watcher, error) {
restConfig, err := clientConfig.ClientConfig()
if err != nil {
return kubeAPIWatcher{}, err
return kubeAPIWatcher{info: info}, err
}
kubeClient, err := kubernetes.NewForConfig(restConfig)
if err != nil {
return kubeAPIWatcher{}, err
return kubeAPIWatcher{info: info}, err
}
return kubeAPIWatcher{coreClient: kubeClient.CoreV1(), info: info}, nil
}

0 comments on commit 8cc786e

Please sign in to comment.