Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Dec 12, 2024
1 parent 8d3ee22 commit 161dfba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scrapers/kubernetes/kubernetes_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (kubernetes KubernetesFileScraper) Scrape(ctx api.ScrapeContext) v1.ScrapeR
for _, pod := range pods {
for _, file := range pod.Config.Files {
for _, p := range file.Path {
stdout, _, err := ctx.KubernetesDynamicClient().ExecutePodf(ctx, pod.Namespace, pod.Name, pod.Container, "cat", p)
stdout, _, err := ctx.KubernetesClient().ExecutePodf(ctx, pod.Namespace, pod.Name, pod.Container, "cat", p)
if err != nil {
results.Errorf(err, "Failed to fetch %s/%s/%s: %v", pod.Namespace, pod.Name, pod.Container, p)
continue
Expand Down
2 changes: 1 addition & 1 deletion utils/kube/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func FetchInvolvedObjects(ctx api.ScrapeContext, iObjs []v1.InvolvedObject) ([]*

client, ok := clientMap[gvk]
if !ok {
c, err := ctx.KubernetesDynamicClient().GetClientByGroupVersionKind(gvk.Group, gvk.Version, gvk.Kind)
c, err := ctx.KubernetesClient().GetClientByGroupVersionKind(gvk.Group, gvk.Version, gvk.Kind)
if err != nil {

// We suspect if this happens we might be on the wrong k8s context
Expand Down

0 comments on commit 161dfba

Please sign in to comment.