Skip to content

Conversation

@ajanikow
Copy link
Collaborator

No description provided.

@cla-bot cla-bot bot added the cla-signed label Jul 21, 2025
@ajanikow ajanikow merged commit 6ece92a into master Jul 22, 2025
3 checks passed
@ajanikow ajanikow deleted the feature/dp/fetch_all_logs branch July 22, 2025 06:58
@ajanikow ajanikow requested a review from Copilot July 22, 2025 06:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modifies the debug package to fetch logs from all Kubernetes containers regardless of their current state by removing the waiting state checks. Previously, containers in a waiting state were skipped during log collection.

  • Removes conditional checks that skip containers in waiting state
  • Ensures comprehensive log collection for debugging purposes across all container types

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pkg/debug_package/generators/kubernetes/kubernetes_core_pods.go Removes waiting state checks for container, ephemeral container, and init container statuses to enable log collection from all containers
CHANGELOG.md Documents the new debug package feature for fetching all logs

continue
}

files <- kubernetesCorePodLogsExtract(ctx, client, item, s[id].Name)
Copy link

Copilot AI Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attempting to extract logs from containers in waiting state may result in API errors or empty responses. The Kubernetes API typically returns errors when trying to get logs from containers that haven't started yet. Consider adding error handling or checking if the container has actually started before attempting log extraction.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants