Skip to content

Commit

Permalink
Merge pull request #139 from kubecost/mmd/fix-proxy-panic
Browse files Browse the repository at this point in the history
Fix panic when --use-proxy is true
  • Loading branch information
michaelmdresser authored Jan 26, 2023
2 parents 04189c6 + 2fde34d commit b472074
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/query/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ func (o *QueryBackendOptions) Complete(restConfig *rest.Config) error {
return fmt.Errorf("port-forwarding requested service '%s' (port %d) in namespace '%s': %s", o.ServiceName, o.ServicePort, o.KubecostNamespace, err)
}
o.pfQuerier = pfQ
} else {
o.restConfig = restConfig
}
return nil
}
Expand Down

0 comments on commit b472074

Please sign in to comment.