Skip to content

Commit

Permalink
fix(k8s): logs command wouldn't get logs from all pods
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Jun 28, 2021
1 parent 18952a3 commit a6d22fd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/src/plugins/kubernetes/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function getAllPods(
})
)

return <KubernetesServerResource<V1Pod>[]>deduplicateResources(pods)
return <KubernetesServerResource<V1Pod>[]>pods
}

/**
Expand Down Expand Up @@ -266,10 +266,6 @@ export function isBuiltIn(resource: KubernetesResource) {
return apiGroup.endsWith("k8s.io") || !apiGroup.includes(".")
}

export function deduplicateResources(resources: KubernetesResource[]) {
return uniqBy(resources, (r) => `${r.apiVersion}/${r.kind}`)
}

/**
* Converts the given number of millicpus (1000 mcpu = 1 CPU) to a string suitable for use in pod resource limit specs.
*/
Expand Down

0 comments on commit a6d22fd

Please sign in to comment.