Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output init containers in subctl gather #1267

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

tpantelis
Copy link
Contributor

@tpantelis tpantelis commented Nov 21, 2024

Refactored gatherPodLogs to take the desired container names. If none specified, gather logs for all init and normal containers confgiured in the pod.

Also, if a pod fails, it's useful to see the pod details so gather the YAML for pod resources for daemonsets and deployments.

Fixes #1266

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr1267/tpantelis/gather_init_container
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

Refactored "gatherPodLogs" to take the desired container names. If none
specified, gather logs for all init and normal containers confgiured in
the pod.

Also, if a pod fails, it's useful to see the pod details so gather the
YAML for pod resources for daemonsets and deployments.

Signed-off-by: Tom Pantelis <[email protected]>
@tpantelis tpantelis force-pushed the gather_init_container branch from c1d11cb to 037b0be Compare November 21, 2024 21:43
@tpantelis tpantelis requested a review from mkolesnik as a code owner November 21, 2024 21:43
@tpantelis tpantelis added the backport This change requires a backport to eligible release branches label Nov 21, 2024
@tpantelis tpantelis enabled auto-merge (rebase) November 22, 2024 17:19
@tpantelis tpantelis added the ready-to-test When a PR is ready for full E2E testing label Nov 22, 2024
@vthapar
Copy link
Contributor

vthapar commented Nov 25, 2024

@tpantelis Backport this for 0.18?

@tpantelis
Copy link
Contributor Author

@tpantelis Backport this for 0.18?

yes

@tpantelis tpantelis merged commit d5ad73f into submariner-io:devel Nov 25, 2024
37 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr1267/tpantelis/gather_init_container]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport This change requires a backport to eligible release branches backport-handled ready-to-test When a PR is ready for full E2E testing
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

subctl gather should handle init containers
4 participants