What would you like to be added?
Add two flags to kubectl cluster-info dump:
--skip-logs: Do not retrieve pod logs.
--skip-events: Do not retrieve Events.
Both flags would default to false, preserving existing behavior.
Examples:
kubectl cluster-info dump --skip-logs
kubectl cluster-info dump --skip-events
kubectl cluster-info dump --skip-logs --skip-events
Why is this needed?
kubectl cluster-info dump currently always retrieves events and logs for every
selected namespace. In some environments this:
- makes the dump substantially slower and larger.
- collects potentially sensitive application log data unnecessarily.
- prevents callers from creating a resource-state-only diagnostic bundle.
Proposed behavior
- Existing behavior remains unchanged when neither flag is supplied.
--skip-logs avoids all pod log API requests and does not create log files.
--skip-events avoids all Event list requests and does not create event files.
What would you like to be added?
Add two flags to
kubectl cluster-info dump:--skip-logs: Do not retrieve pod logs.--skip-events: Do not retrieve Events.Both flags would default to
false, preserving existing behavior.Examples:
kubectl cluster-info dump --skip-logs
kubectl cluster-info dump --skip-events
kubectl cluster-info dump --skip-logs --skip-events
Why is this needed?
kubectl cluster-info dumpcurrently always retrieves events and logs for everyselected namespace. In some environments this:
Proposed behavior
--skip-logsavoids all pod log API requests and does not create log files.--skip-eventsavoids all Event list requests and does not create event files.